nwg-piotr / nwg-drawer

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

Launching thunar from nwg-drawer opens in sway config directory #87

Closed xi-pinmping closed 1 year ago

xi-pinmping commented 1 year ago

Issue is fairly straight forward but im not finding anything I could be doing to cause this. I checked my desktop entry for thunar and nothing is out of the ordinary. If I launch from my hotkey it opens in homedir by default, which is expected behavior. Not sure how I can change this problem.

Keep up the great work, loving everything still!

nwg-piotr commented 1 year ago

Haha, no idea! Wherever I start Thunar from, it always opens my home dir first. It looks as if it was started with the thunar ~/.config/sway command. The drawer takes commands from .desktop files. Maybe you need to check the line starting from Exec= in your thunar.desktop file?

xi-pinmping commented 1 year ago

The only thunar.desktop file is in my /usr/share/applications directory and the exec line is just Exec=thunar %U which is where I get lost lol. Im thinking this is possibly an xdg-open issue but im always afraid to mess with that as anything I do to it normally results in a regression.

EDIT: Adding thunar ~ %U to desktop fixes behavior.