fleek icon indicating copy to clipboard operation
fleek copied to clipboard

Make macOS apps show up in Spotlight searches

Open bonds opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

After I've installed "iterm2" using Fleek, It would be nice to be able to press Command-Space, type in "iterm2" and Enter and have it launch iterm2. Unfortunately, Apple makes that hard, Fleek uses homemanager, and homemanager install links to the apps in a manner that doesn't work with Spotlight: https://github.com/nix-community/home-manager/issues/1341. It's a known, upstream issue, so to be fair to Fleek, not really it's problem. BUT, seeing as Fleek is trying to wrap the suboptimal upstream UX and make it awesomer, seems worth mentioning in case a Fleek maintainer is interested...if not, feel free to close the ticket and at least folks can see that decision in case they come looking.

Describe the solution you'd like

Installing GUI apps on macOS, using Fleek, results in the GUI app being findable and launchable using Spotlight.

Describe alternatives you've considered

  • create the aliases myself, as discussed in homemanager GitHub ticket above, remove them manually as well whenever I've removed the app it was referencing
  • cry to myself

Additional context

none

bonds avatar Apr 14 '23 17:04 bonds

will leave open until there's a solution

bketelsen avatar Apr 15 '23 18:04 bketelsen

@bonds How did you get your aliases working?

I hit this this evening, and go so confused by it I assumed I had done something wrong in the install Fleek setup etc. I loved the idea of bundling shell customisation and package management, so you can spec a whole dev machine in one yaml file!

But I can't get things to work - simple packages like jq are fine and get added to my PATH through eg ~/.nix-profile/bin/jq. But I spied slack was in there as a package, installed it fine but I can't see it in Spotlight which is how I open anything basically, and they don't get added to my PATH. Opening /nix/store/wgmna148a2gl647ak6q74984wbh2kfd7-home-manager-path/Applications in finder does show them but I can't get Aliases to work. I feel like I'm missing something - how are people actually running UI apps they installed!?

elsmorian avatar Aug 21 '23 22:08 elsmorian

I haven’t tried it, but I heard someone made a symlink in $HOME/Applications for nix apps. That may work.

On Aug 21, 2023, at 6:57 PM, Chris Stokesmore @.***> wrote:

@bonds https://github.com/bonds How did you get your aliases working?

I hit this this evening, and go so confused by it I assumed I had done something wrong in the install Fleek setup etc. I loved the idea of bundling shell customisation and package management, so you can spec a whole dev machine in one yaml file!

But I can't get things to work - simple packages like jq are fine and get added to my PATH through eg ~/.nix-profile/bin/jq. But I spied slack was in there as a package, installed it fine but I can't see it in Spotlight which is how I open anything basically, and they don't get added to my PATH. Opening /nix/store/wgmna148a2gl647ak6q74984wbh2kfd7-home-manager-path/Applications in finder does show them but I can't get Aliases to work. I feel like I'm missing something - how are people actually running UI apps they installed!?

— Reply to this email directly, view it on GitHub https://github.com/ublue-os/fleek/issues/145#issuecomment-1687170524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJE5HGDPZUEOTP375QTGTXWPRUBANCNFSM6AAAAAAW6VDRWE. You are receiving this because you commented.

bketelsen avatar Aug 21 '23 22:08 bketelsen

@bonds How did you get your aliases working?

I run this script I wrote, whenever I start a new shell:

https://github.com/bonds/dotfiles/blob/main/bin/darwin/create_devbox_app_aliases

bonds avatar Aug 21 '23 23:08 bonds