ublue-os / fleek

[deprecated] Own your $HOME
https://getfleek.dev
Apache License 2.0
833 stars 24 forks source link

Make macOS apps show up in Spotlight searches #145

Open bonds opened 1 year ago

bonds commented 1 year ago

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

Additional context

none

bketelsen commented 1 year ago

will leave open until there's a solution

elsmorian commented 1 year ago

@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!?

bketelsen commented 1 year ago

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.

bonds commented 1 year ago

@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