nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
233 stars 25 forks source link

Launching certain apps #97

Closed matuck closed 1 year ago

matuck commented 1 year ago

When lauching certain apps the the app doesnt launch for excample if I launch gnome-chess it will not launch if loading from sway config use either alt+f1 or the icon on the panel. If I kill all nwg-drawer applications and launch nwg-drawer from terminal it works as expected.

nwg-piotr commented 1 year ago

Sorry, couldn't confirm. Just installed gnome-chess and launched it from nwg-drawer with no issue.

image

matuck commented 1 year ago

This may be a distribution problem. I am running debian and gnome chess is installed to /usr/games. The problem seems to be around games so things installed to /usr/games. However /usr/games is in my path

nwg-piotr commented 1 year ago

The drawer takes the exec name (or full path) from the .desktop file. Check your /usr/share/applications/org.gnome.Chess.desktop file.

[Desktop Entry]
(...)
Exec=gnome-chess %U

On my side it's just the name, w/o path. This means that the gnome-chess binary location must be included in your $PATH environment variable.

Check the binary location:

$ command -v gnome-chess
/usr/bin/gnome-chess

And then if it's on your path:

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

The question is whether you .desktop file specifies just the name, w/o a path different from /usr/games/.

matuck commented 1 year ago

on my side it is just the path gnome-chess as well

[Desktop Entry]
(...)
Exec=gnome-chess %U

Path for excuteable

$ command -v gnome-chess
/usr/games/gnome-chess

My path

$ echo $PATH
/home/matuck/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

However, if I put a sysmlink from /usr/games/gnome-chess to /usr/local/bin/gnome-chess, it works fine.

nwg-piotr commented 1 year ago

Strange. I haven't seen Ubuntu for years. Can't install to check it myself, as I'm on vacation, with an ancient laptop and a slow Internet connection only. :/

matuck commented 1 year ago

will keep working at it to see if i find a solution and will post here if i do.

nwg-piotr commented 1 year ago

Excellent.

matuck commented 1 year ago

looks to be a problem with gdm. If I stop gdm and login to console then run sway it works fine some something in the way gdm is launching sway

nwg-piotr commented 1 year ago

Looks like a step forward. For sway and Hyprland sddm is a decent choice. Or you may just start with sway from the command line.

matuck commented 1 year ago

Works fine with sddm. Just in case anyone else runs across a similar problem.