feat: auto-update checking + fix: systemd timer path bug#15
Open
RhoMancer wants to merge 2 commits into
Open
Conversation
- src/update.rs: version comparison, GitHub API check, self-update - Settings: auto_update_check (default true) - Preferences: "Check for updates automatically" checkbox - Preferences: "Check for updates" button with status feedback - About dialog: changelog link via release notes - 20 new tests (version comparison, API parsing, URL builders, live check) TDD: tests written first, all 201 pass. 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Root cause: temperlux_binary_path() used current_exe() to hardcode the absolute path at timer-generation time. If the binary was later moved (e.g. cargo uninstall → make install), all existing schedules silently broke — timers fired but service failed with exit code 203 (EXEC). Fix: - temperlux_binary_path() now verifies the path exists before using it, falls back to bare "temperlux" if not found - Service units now include Environment="PATH=..." with ~/.local/bin, ~/.cargo/bin, and standard system paths so systemd can resolve the bare name even outside the default PATH Also includes auto-update feature (feature/auto-update branch merged): - src/update.rs: version comparison, GitHub API check, self-update - Settings: auto_update_check (default true) - Preferences: check-for-updates checkbox + button with status feedback - About dialog: changelog link via release notes - 20 new tests (all 201 pass) 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
👾 Generated with Letta Code