nwg-piotr / nwg-drawer

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

remove `XDG_CURRENT_DESKTOP` as default `-wm` value; allow capitalized `Hyprland` #105

Closed nwg-piotr closed 9 months ago

nwg-piotr commented 9 months ago

@gouvinb: Setting $XDG_CURRENT_DESKTOP as the default -wm argument value basically makes the argument useless. This way on sway and Hyprland we always have auto-detection, and we always launch apps via the compositor. I want users to have a choice, and give up on this feature if they want, by just not using the -wm argument.

BTW: yesterday I had an user with such an issue: nwg-drawer would always refuse to launch apps, and the coommand looked like this (on Hyprland):

INFO[0002] command: "swaymsg"; args: ["exec" "/usr/bin/env -S <command>"]

It turned out that, for some mysterious reason, he set env = XDG_CURRENT_DESKTOP, sway in the Hyprland config file. Of course it was his fault, but I realized, that any improper $XDG_CURRENT_DESKTOP value will get us into trouble.