pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
219 stars 42 forks source link

Pop launcher installed correctly but not working [Fedora 37] #199

Closed PrimalPimmy closed 5 months ago

PrimalPimmy commented 8 months ago

As the title says, I built it from source, but the launcher is still empty if I try to type in something. And while trying to run it in the terminal, I get image

NOTE: Im using pop-shell provided in the fedora repo, I hope nothing else must be done.

ltsuda commented 8 months ago

I think I got the same or similar issue.

Installed Pop-os shell on Ubuntu 22.04 LTS through make local-install, launcher open but can't find any app.

nov 02 17:31:33 <hostname> gnome-shell[10263]: pop-shell: [DEBUG] starting pop-launcher service
nov 02 17:31:33 <hostname> gnome-shell[10263]: pop-shell: [ERROR] failed to spawn pop-launcher: GLib.SpawnError: Failed to execute child process “pop-launcher” (No such file or directory)
jacobgkau commented 8 months ago

@ltsuda Your issue looks like you installed pop-shell but not pop-launcher. pop-shell only provides a frontend; the pop-launcher app in this repo provides the backend and must also be installed. I don't think that's the same issue that @PrimalPimmy is having, since your issue doesn't mention a cache file.

@PrimalPimmy Is there anything in ~/.cache/pop-launcher/? If it doesn't exist, are your filesystem permissions configured in a way that would allow that directory to be created?

ltsuda commented 8 months ago

@ltsuda Your issue looks like you installed pop-shell but not pop-launcher. pop-shell only provides a frontend; the pop-launcher app in this repo provides the backend and must also be installed. I don't think that's the same issue that @PrimalPimmy is having, since your issue doesn't mention a cache file.

@PrimalPimmy Is there anything in ~/.cache/pop-launcher/? If it doesn't exist, are your filesystem permissions configured in a way that would allow that directory to be created?

Ohh, understood. It makes sense now, I will try to build from pop-launcher repository as I think there aren't any .deb package for Ubuntu available.

Thank you.

shreyassanthu77 commented 6 months ago

I have the same issue. I am on fedora 39 image image

xuesoso commented 5 months ago

there are two issues at play.

  1. pop-launcher requires a front-end application call to work:

    • i.e. call it from pop-shell superkey (default "super+/") command for launcher.
  2. make sure pop-launcher binary is installed / symlinked to a system search path:

    • for pop-launcher to work with the pop-shell extension on Fedora / Ubuntu, you need to make sure that pop-launcher is accessible as a command on terminal. The default build instruction installs a binary file to ~/.local/bin/pop-launcher, which is not on system search path. To fix it, create a symlink sudo ln -s ~/.local/bin/pop-launcher /usr/local/bin/pop-launcher. Now when you evoke pop-launcher through the front end app, a window should pop and a list of applications should show.
nezia1 commented 5 months ago
* for `pop-launcher` to work with the `pop-shell` extension on Fedora / Ubuntu, you need to make sure that `pop-launcher` is accessible as a command on terminal. The default build instruction installs a binary file to `~/.local/bin/pop-launcher`, which is not on system search path. To fix it, create a symlink `sudo ln -s ~/.local/bin/pop-launcher /usr/local/bin/pop-launcher`. Now when you evoke `pop-launcher` through the front end app, a window should pop and a list of applications should show.

This fixed it for me! We should probably add this to the install script (or perhaps is it in there already?). Had the same issue on Fedora 39.

mmstick commented 5 months ago

The pop-launcher package should be storing the binary in /usr/bin/. If you are installing it from source, you can change the prefix to place it in /usr/bin.

nezia1 commented 5 months ago

The pop-launcher package should be storing the binary in /usr/bin/. If you are installing it from source, you can change the prefix to place it in /usr/bin.

I tried changing the prefix using sudo just prefix=/usr/local/bin install but it did not work. It gave me error: Variable prefix overridden on the command line but not present in justfile

Also you mentioned that it should be storing the binary in /usr/bin, but it did place it in ~/.local/bin for me (regardless of running it as root or as user). Is this expected behavior?