I can add env
in .desktop
file in /usr/share/applications/
Exec=env FOO=bar /usr/bin/my_prog
but I need to set 2 environment variables and no approach that I tried works (using env
twice, appending second assignment after ;
)
How can I set 2 env
variables in .desktop
file ?
name=value
can be repeated. Did you tryExec=env FOO=bar SNA=fu /usr/bin/myprog
?Exec=env foo=bar bar=foo /home/user/test/test.sh
. Wheretest.sh
echos the two variablesfoo
andbar
. You might want to write a wrapper script as an alternative and call that wrapper script in your.desktop
entry.=
sign. How to escape it?