Biont / sway-launcher-desktop

TUI Application launcher with Desktop Entry support. Made for SwayWM, but runs anywhere
GNU General Public License v3.0
606 stars 28 forks source link

[bug] command entries do not start #67

Open Pato05 opened 2 years ago

Pato05 commented 2 years ago

As seen in the logs (or also by piping ./sway-launcher-desktop | cat), for some reason, it prepends -e to every command, making it fail to start.

Logs:

Starting launcher instance with the following providers: desktop user command
Launching command:  -e firefox
Pato05 commented 2 years ago

Out of curiosity, I checked out to v1.5.2 and it works as intended. It seems that the issue is basically the TERMINAL_COMMAND variable which is set to $TERM -e (in v1.5.2) and $TERMINAL -e (in master); and, at least in my case, $TERMINAL isn't set, but $TERM is.

TL;DR as a workaround: set the TERMINAL_COMMAND environment variable via env