<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lan-mouse/src/config.rs, branch main</title>
<subtitle>a fork</subtitle>
<id>https://git.nsrddyn.com/lan-mouse/atom/src/config.rs?h=main</id>
<link rel='self' href='https://git.nsrddyn.com/lan-mouse/atom/src/config.rs?h=main'/>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/'/>
<updated>2026-09-23T07:09:25Z</updated>
<entry>
<title>feat: add leave_hook symmetric to enter_hook</title>
<updated>2026-09-23T07:09:25Z</updated>
<author>
<name>Ty Smith</name>
<email>ty@tysmith.me</email>
</author>
<published>2026-05-26T22:09:32Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=9b2b813c0517eee4966c3f042a8f9678885a73f4'/>
<id>urn:sha1:9b2b813c0517eee4966c3f042a8f9678885a73f4</id>
<content type='text'>
Per-client leave_hook fires sh -c &lt;cmd&gt; when capture for that client
is released. Wired through a single release_capture() chokepoint
covering release_bind, network send failure, Destroy-of-active-client,
and Release request paths.
</content>
</entry>
<entry>
<title>fix clippy lint</title>
<updated>2026-08-31T08:34:02Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>schober@cs.fau.de</email>
</author>
<published>2026-08-31T08:34:02Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=b115208aadb54ee6ed8f534f7b4d99c589916b0f'/>
<id>urn:sha1:b115208aadb54ee6ed8f534f7b4d99c589916b0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: peer version exchange with soft-warn UI indicator</title>
<updated>2026-06-14T20:59:26Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-05-04T18:50:40Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=72c86c0d8352684fc2d005522d4c5b496be0158b'/>
<id>urn:sha1:72c86c0d8352684fc2d005522d4c5b496be0158b</id>
<content type='text'>
Adds a one-shot Hello message to the lan-mouse wire protocol so each
peer can display the other end's build commit hash and warn on
version mismatch. Soft-warn only — mismatched versions never refuse
traffic.

Wire change (lan-mouse-proto)
* `ProtoEvent::Hello { commit: [u8; 8] }` carries the 8-byte ASCII
  short commit from shadow_rs's `SHORT_COMMIT`. Encoded/decoded
  alongside the existing event variants.
* `EventType::Hello` is appended to the enum so existing IDs are
  untouched. Old peers receive the event, hit `InvalidEventId`, and
  silently skip it via the forward-compat handler in
  `connect.rs::receive_loop` — the connection is unaffected.

Daemon
* Connect side sends one Hello immediately after the DTLS handshake
  authenticates and before the ping_pong loop starts. Best-effort,
  fire-and-forget — `log::debug!` on send error.
* Listen side mirrors the peer's Hello with its own (same shape as
  the existing Ping → Pong reply), so the peer's connect-side
  receive_loop populates `ClientState::peer_commit` for that
  handle.
* The disconnect path clears `peer_commit` so a stale hash isn't
  shown after the connection drops.

IPC
* `ClientState::peer_commit: Option&lt;[u8; 8]&gt;`. `None` means the
  peer hasn't sent Hello yet — either fresh connection or older
  build that predates the event.

GTK
* `ClientObject` exposes `peer-commit` as an `Option&lt;String&gt;`
  property; `peer_commit_to_string` converts the wire `[u8; 8]` to
  the displayable hex.
* `lan_mouse_gtk::run` now takes the local commit and stashes it in
  a `OnceLock` so per-row UI can compare against each peer's hash.
* `ClientRow::refresh_version_status` re-renders the collapsed
  subtitle with Pango markup whenever the property changes:
   - matched → green   "peer version: &lt;hex&gt; · matched"
   - mismatch → orange "peer version: &lt;hex&gt; · ours: &lt;hex&gt;"
   - unknown → orange  "peer version: unknown · ours: &lt;hex&gt;"
* Window invokes `refresh_version_status` from
  `update_client_state` after writing the new property, and
  `bind` calls it once on row construction so the initial
  subtitle isn't blank.

Known limitation: state-change broadcasts from the network side
(set_alive / set_active_addr / set_peer_commit) don't currently
trigger a `FrontendEvent::State` directly; the UI picks up the
latest values on the next user-driven broadcast. Same pre-existing
behavior as the alive/active_addr fields.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>ignore metadata change on config file</title>
<updated>2026-06-14T15:19:07Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2026-06-14T15:19:07Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=dbeaea03adc0759c0532ac4ee4af0702f7469641'/>
<id>urn:sha1:dbeaea03adc0759c0532ac4ee4af0702f7469641</id>
<content type='text'>
This avoids parsing the config file a second time on change because
of the metadata change.
</content>
</entry>
<entry>
<title>remaining feature flags (#444)</title>
<updated>2026-06-08T12:38:24Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2026-06-08T12:38:24Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=1b53e58ba969c03e985ff2d7144eab1698bb9d47'/>
<id>urn:sha1:1b53e58ba969c03e985ff2d7144eab1698bb9d47</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: write a default config.toml on every Config::new()</title>
<updated>2026-04-29T20:59:43Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-04-24T07:22:42Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=cbdb86ce0568eec65c480345c3098dd7c65cbd1d'/>
<id>urn:sha1:cbdb86ce0568eec65c480345c3098dd7c65cbd1d</id>
<content type='text'>
The previous fix created the config directory but left config.toml
absent on a first launch, which surfaced as two "No such file or
directory (os error 2)" warnings (one from the main process, one
from the spawned daemon child) and left the app starting up with
config_toml=None until the GUI persisted something.

Write ConfigToml::default() to the path if it doesn't exist, so
every entry point — GUI main, spawned daemon, CLI, test commands
— gets a concrete file to read, and first-launch logs stay clean.

Also reorders Config::new() so both the directory creation and the
file bootstrap run before the first read attempt, eliminating the
warning at the source rather than hiding it.

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fix: create ~/.config/lan-mouse/ on first launch</title>
<updated>2026-04-29T20:59:43Z</updated>
<author>
<name>Jon Kinney</name>
<email>jonkinney@gmail.com</email>
</author>
<published>2026-04-24T07:08:59Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=c40e10505bad296b5e69a65334a3a81c587c0a4b'/>
<id>urn:sha1:c40e10505bad296b5e69a65334a3a81c587c0a4b</id>
<content type='text'>
notify::Watcher fails on macOS if the config directory doesn't
exist. Create it with create_dir_all before calling config.watch().

Co-Authored-By: Claude Opus 4.7 (1M context) &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>automatically update config when changed (#402)</title>
<updated>2026-04-09T10:04:21Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2026-04-09T10:04:21Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=a878c985f0633a12b00a363883fd56385c2368e7'/>
<id>urn:sha1:a878c985f0633a12b00a363883fd56385c2368e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: config initialization in authorize</title>
<updated>2026-04-08T15:43:25Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinand.schober@fau.de</email>
</author>
<published>2026-04-08T15:43:25Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=aef05f386f5dd4d7e5c4fd0fb4e25477cef0613a'/>
<id>urn:sha1:aef05f386f5dd4d7e5c4fd0fb4e25477cef0613a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>clear config, when unable to parse</title>
<updated>2026-02-08T12:27:38Z</updated>
<author>
<name>Ferdinand Schober</name>
<email>ferdinandschober20@gmail.com</email>
</author>
<published>2026-02-08T12:27:38Z</published>
<link rel='alternate' type='text/html' href='https://git.nsrddyn.com/lan-mouse/commit/?id=8e96025f124ef161eb4b1dba402727c7f9c96868'/>
<id>urn:sha1:8e96025f124ef161eb4b1dba402727c7f9c96868</id>
<content type='text'>
</content>
</entry>
</feed>
