Skip to content

fix(finder): keep drive icons in the Finder sidebar - #175

Merged
wflixu merged 3 commits into
mainfrom
dev
Nov 14, 2026
Merged

wflixu merged 3 commits into
mainfrom
dev

Conversation

@wflixu

@wflixu wflixu commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Finder paints the containing app's icon on every root a Finder Sync extension observes. RClick observes each mounted volume, so external disks and mounted disk images wore RClick's app icon instead of a drive icon (#158). Declare the externaldrive symbol through CFBundleSymbolName in the app's Info.plist, which is what Finder uses for those entries.

The key only had an effect once the bundle plist was real: the app target generates its Info.plist and set no INFOPLIST_FILE, so RClick/Info.plist was never used — the synchronized group copied it into Contents/Resources. Point INFOPLIST_FILE at it, let the generated keys merge into it, and exclude it from the resource membership.

Also move softprops/action-gh-release to v3 so the release workflow stops running on the deprecated Node 20 runtime, and bump the build number to reload the extension.

Summary

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 📝 Documentation update
  • ♻️ Refactoring
  • ⚡ Performance improvement
  • 🔧 Build/CI change
  • 🧪 Test addition/update

Related Issue

Screenshots

Before After

Testing

Manual Testing

  • App launches and appears in menu bar
  • Right-click menu works correctly in Finder
  • Dark mode looks correct
  • Settings persist across restarts
  • FinderSync extension loads properly

Build Verification

# Paste the output of:
xcodebuild -project RClick.xcodeproj -scheme RClick -destination 'platform=macOS'

Checklist

  • My code follows the project's Swift 6.2 conventions (see CONTRIBUTING.md)
  • All UI is SwiftUI (no AppKit UI components)
  • I have tested on macOS 15.6+
  • I have tested with both light and dark mode
  • I have updated documentation if needed
  • My branch is up-to-date with dev

Additional Notes

Finder paints the containing app's icon on every root a Finder Sync
extension observes. RClick observes each mounted volume, so external
disks and mounted disk images wore RClick's app icon instead of a drive
icon (#158). Declare the externaldrive symbol through CFBundleSymbolName
in the app's Info.plist, which is what Finder uses for those entries.

The key only had an effect once the bundle plist was real: the app target
generates its Info.plist and set no INFOPLIST_FILE, so RClick/Info.plist
was never used — the synchronized group copied it into Contents/Resources.
Point INFOPLIST_FILE at it, let the generated keys merge into it, and
exclude it from the resource membership.

Also move softprops/action-gh-release to v3 so the release workflow stops
running on the deprecated Node 20 runtime, and bump the build number to
reload the extension.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@wflixu wflixu mentioned this pull request Nov 11, 2026
wflixu and others added 2 commits November 14, 2026 14:41
Updating could report success while the old version stayed in place, and
two copies could run at once, each handling every Finder click (#179).

- Surface installation failures instead of swallowing them, and verify the
  staged bundle's version before it replaces the old app
- Stage the new app beside the destination and swap it in with a rename, so
  a failed install never leaves /Applications without RClick
- Ask for /Applications access and retry once when the sandbox rejects the
  write, instead of trusting isWritableFile
- Move the old copy to the Trash when updating from outside /Applications
- Quit the older instance when a newer one starts. Sandboxed apps cannot
  terminate each other, so the loser quits itself; another copy can appear
  later, so the check repeats every two seconds
- Restart immediately after installing instead of offering "Restart Later",
  and keep the current app running if the new version fails to launch

Bump to 2.3.4 (build 20261114001).

Co-Authored-By: Claude Code <noreply@anthropic.com>
Copy Path dropped every selection but the first, and copied only plain
text (#180). It now writes one path per line and also puts file URLs on
the pasteboard, so pasting into Finder yields the files themselves.
Copy File Name follows the same rule with names instead of paths.

Both actions share a Clipboard helper compiled into the app and the
Finder extension, so the offline fast path and the main-app path cannot
diverge. The joined text is attached only to the first pasteboard item;
text consumers read that item, while Finder still receives every URL.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@wflixu
wflixu merged commit efacf21 into main Nov 14, 2026
1 check 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