-
-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applications not linked in a way finder can find them #1079
Comments
There are multiple problems with the way macOS applications are added to the
The thread at NixOS/nix#7055 is very informative, and proposes an interesting solution which leverages filesystem aliases instead of symlinks: NixOS/nix#7055 (comment) |
Aliases also have significant issues; see nix-community/home-manager#1341 for discussion. Probably copying is the best solution. That’s what Homebrew settled on eventually too. |
@emilazy are you referring to these two points?
|
Yes, though also making aliases through Finder is a hack with its own set of problems so we’d want to use a native code solution to accomplish it even if we went that route. The Spotlight problem is pretty serious though. If there was something other than copying that worked well I expect Homebrew Cask would have already adopted it. |
Aliases can be created programatically (e.g., https://github.com/reckenrode/mkalias). Finder should not be scripted. It undermines TCC. macOS 15 also requires explicit approve Finder of scripting in Security & Privacy, making the experience even worse (probably to discourage scripting of Finder because it’s effectively equivalent to having Full Disk Access). (I’m also pretty sure aliases share similar limitations to the trampoline method with references to the store in the dock and services not being available until an aliased application has been launched, but it’s been so long since I looked into it that I don’t remember for sure.) |
Is your concern simply finding them in spotlight? |
Yes, cmd + space happens to be the way I start most my apps. |
Same goes for Alfred, can't find it if it isn't in Applications. |
Raycast shows my nix-darwin ( |
There are a few ways to accomplish this, at least of which I am aware, but each has a downside or limitation. The best option is to create a symlink in your Try entering this block into your configuration:
|
I have a bunch of apps installed through nix-darwin and I can launch them from command line, i.e. Zoom with
zoom
.I also see them in
/run/current-system/Applications/
. I however cannot find them through finder. How do I make macOS aware or those apps?darwin-rebuild check
tells me everything is ok.Here are my software versions
The text was updated successfully, but these errors were encountered: