Skip to content

Uninstall apps from ⌘K, paste on Return, clearer permissions - #4

Merged
leoAnimesh merged 5 commits into
mainfrom
feat/uninstall-paste-permissions
Nov 2, 2026
Merged

leoAnimesh merged 5 commits into
mainfrom
feat/uninstall-paste-permissions

Conversation

@leoAnimesh

Copy link
Copy Markdown
Owner

Summary

  • Uninstall Application (⌃X in ⌘K on an app). Confirms first and lists the app's leftover files in ~/Library, with a checkbox to remove them too. Quits the app if it's running, then moves everything to the Trash (never a hard delete). Root-owned apps fall back to Finder, which asks for an admin password.
    • Not offered for OS apps, including /Applications/Safari.app, which is a symlink into the sealed system volume, or for Lodestar itself.
    • Symlinked apps: the real bundle is trashed, not just the link.
    • Support-file paths only use safe path components, so a crafted bundle ID like .. can't point at ~/Library.
    • The app index rescans afterwards, so the app leaves the results.
  • Clipboard: Return pastes into the app you were typing in.
    • Without Accessibility, the launcher now still closes and a HUD says the entry was copied, instead of staying open.
    • The launcher hands focus back to the previous app before pasting, in case an alert made Lodestar active. This covers every paste action.
  • Permissions UI. Settings and onboarding share one PermissionsList:
    • a summary line and live statuses that also refresh when you return from System Settings;
    • buttons that do the right next step: the Accessibility prompt the first time, then the pane; the pane for Automation once it has been denied;
    • a note for the "switched on but Not Granted" case, using the pane name your macOS shows ("Device Control and Data Access" on macOS 27).
  • bundle.sh signs with your Developer ID automatically when one is in the keychain. Without one it still signs ad hoc, and SIGN_IDENTITY=- forces ad hoc. Ad-hoc builds are a new app to macOS on every rebuild, so permission grants stopped applying to local builds. package-release.sh passes its identity through.

Testing

  • swift test: 141 tests, 0 failures. New tests cover protecting symlinks into /System and rejecting unsafe path components.
  • Built with scripts/bundle.sh (Developer ID) and checked by hand:
    • The uninstall confirmation listed the right files and moved the app to the Trash.
    • Calculator and other OS apps don't get the action.
    • Accessibility showed Granted once the stale entry was replaced, and paste-on-Return works.
  • Not checked by hand: the Finder admin-password fallback, the 5-second quit timeout for an app that won't quit, and uninstalling a symlinked app.

🤖 Generated with Claude Code

leoAnimesh and others added 5 commits November 2, 2026 13:26
⌃X on an app result asks for confirmation, quits the app if it is running,
then moves the bundle and (optionally) its per-user support files to the
Trash, never deleting outright. Root-owned apps fall back to Finder, which
asks for an administrator password.

Not offered for OS apps, including ones that only look user-installed
(/Applications/Safari.app is a symlink into the sealed system volume), or
for Lodestar itself. Support-file paths are built only from safe path
components, so a crafted bundle ID such as ".." can't reach ~/Library.
The app index rescans after an uninstall so the app leaves the results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Return copies the entry, closes the launcher and sends ⌘V. Without
Accessibility the launcher still closes and a HUD says the entry was copied,
instead of staying open with a toast.

The launcher remembers the app that was frontmost when it opened and hands
focus back to it before pasting, in case an alert made Lodestar active.
This applies to every paste action (emoji, colors, calculator results).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings and onboarding now share PermissionsList: a summary line, live
statuses that also refresh when you come back from System Settings, and
buttons that do the right next thing (the Accessibility prompt the first
time, then the pane; the pane for Automation once it has been denied).

While Accessibility is off, a note explains the common "switched on but
Not Granted" case (the switch belongs to an older copy of Lodestar) and
names the pane as this macOS version does ("Device Control and Data
Access" on macOS 27).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ad-hoc builds are a new app to macOS on every rebuild, so Accessibility and
other grants stopped applying to local builds. With SIGN_IDENTITY unset,
bundle.sh now uses the first Developer ID Application identity in the
keychain, else signs ad hoc as before (CI). SIGN_IDENTITY=- forces ad hoc.
package-release.sh passes its identity through so the app and DMG match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leoAnimesh
leoAnimesh merged commit e405125 into main Nov 2, 2026
1 check passed
@leoAnimesh leoAnimesh mentioned this pull request Nov 2, 2026
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