Skip to content

feat: Phase 6 — Qt-path SIGTERM + systemd unit#5

Merged
ChristopherLandaverde merged 8 commits intomainfrom
phase6-qt-sigterm
Apr 28, 2026
Merged

feat: Phase 6 — Qt-path SIGTERM + systemd unit#5
ChristopherLandaverde merged 8 commits intomainfrom
phase6-qt-sigterm

Conversation

@ChristopherLandaverde
Copy link
Copy Markdown
Owner

Fixes SIGTERM handling on the Qt listen path via set_wakeup_fd + QSocketNotifier. Adds install-service command that writes a systemd user unit file.

Changes

  • listen.py: socketpair + signal.set_wakeup_fd + QSocketNotifier before app.exec() so SIGTERM triggers clean teardown on the Qt path
  • cli/install_service.py: new logitechmouse install-service --config PATH [--force] command
  • main.py: wires the install-service subcommand

Usage after merge

logitechmouse install-service --config ~/.config/logitechmouse/config.toml
systemctl --user enable --now logitechmouse

Closes the Qt-path SIGTERM deferral from Phase 5.

@ChristopherLandaverde ChristopherLandaverde merged commit ed46cbf into main Apr 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant