Skip to content

Fix hardcoded path in plist, add hidutil cleanup to uninstall, update CONTRIBUTING - #11

Merged
mitchelljphayes merged 1 commit into
mainfrom
fix-install-scripts-and-contributing
Mar 16, 2026
Merged

mitchelljphayes merged 1 commit into
mainfrom
fix-install-scripts-and-contributing

Conversation

@mitchelljphayes

Copy link
Copy Markdown
Owner

Summary

  • Plist bug fix: Replace hardcoded /Users/mjp/... path in com.local.switcheroo.plist with an __APP_DIR__ placeholder that install.sh templates via sed at install time. Previously the plist only worked on the original author's machine.
  • Uninstall cleanup: Add hidutil property --set '{"UserKeyMapping":[]}' to uninstall.sh so modifier remaps are cleared even if the daemon was already stopped or crashed without cleanup.
  • CONTRIBUTING.md: Add a lint configuration section explaining the strict clippy rules (deny unwrap/panic/unsafe, pedantic warnings) so contributors know what to expect.

… CONTRIBUTING

- Replace hardcoded /Users/mjp path in LaunchAgent plist with __APP_DIR__
  placeholder, templated by install.sh via sed at install time. Fixes the
  plist for anyone other than the original author.
- Add hidutil UserKeyMapping clear to uninstall.sh as belt-and-suspenders
  cleanup in case the daemon was already stopped or didn't clean up.
- Update CONTRIBUTING.md with lint configuration section explaining the
  strict clippy rules (deny unwrap/panic/unsafe, pedantic warnings).
@mitchelljphayes
mitchelljphayes merged commit 027ccb1 into main Mar 16, 2026
3 checks passed
@mitchelljphayes
mitchelljphayes deleted the fix-install-scripts-and-contributing branch March 16, 2026 19:20
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