Spawning a .desktop application
EDIT: See u/skhill 's comment below for a real solution ~~Somehow I missed the Frequently Asked Questions in the awful.spawn documentation... I did the following:
~~1.) Create the script:~~
#!/usr/bin/env sh
LD_PRELOAD=/usr/lib/spotify-adblock.so spotify &
disown $!
~~2.) use awful.spawn.with_shell(path/to/script) instead of awful.spawn~~
~~While this does not launch a .desktop file, it works for me. Sorry for the spam.~~
ORIGINAL POST:
Hi, I am trying to create a keybinding to launch [spotify with adblock](https://github.com/abba23/spotify-adblock), specifically the following line without creating a "lingering" terminal:
LD_PRELOAD=/usr/lib/spotify-adblock.so spotify
I have been launching a spotify-adblock.desktop file using rofi, but I wanted to use awesomewm's built-in tools instead.
Does any one know how to either launch the above command without creating a terminal OR launch a .desktop file using awesome? Thanks in advance :)
Posted Jul 28, 2022, 2:40 PM UTC · edited
24