Is there a way to set the enviroment variable in .desktop file? I'm trying to run application (eclipse) with custom gtk style, so basically I want to get the following result by runing a .desktop file:
GTK2_RC_FILES=gtkrc.custom /path/to/eclipse
I've tryied to put it in a bash script and run it from the .desktop file, but then it does not integrate well with the Unity launcher.
$HOME
?. NeitherExec=env MYVAR="$HOME/foo"
norExec=env MYVAR="~/foo"
gets expanded. Instead, they are passed literally. – Martin Vegter Dec 31 '16 at 09:25-u
flag, likeenv -u DONT_WANT_THIS_SET some-command
– Tom Saleeba Jun 07 '23 at 04:42