Article 53JYH Desktop (.desktop) icon with custom environment variables

Desktop (.desktop) icon with custom environment variables

by
Turbocapitalist
from LinuxQuestions.org on (#53JYH)
I need to set an environment variable for an application launched as a .desktop icon. I'm not seeing any reference to variables in the latest version of the specification. So I am trying a work-around with a shell:

Code:[Desktop Entry]
Name=Oclock
GenericName=Clock
Comment=Display Time
Type=Application
Exec=sh -c "TZ=America/Chicago oclock -transparent -geometry 94x94+110+0"
Icon=/usr/share/icons/Mint-X/apps/96/clock.svg
StartupNotify=false
Terminal=false
Categories=Clock;Would there be a relevant desktop entry key, or is the above method the only way?latest?d=yIl2AUoC8zA latest?i=GGzSxqWPS7k:1NLHvQ6QnYU:F7zBnMy latest?i=GGzSxqWPS7k:1NLHvQ6QnYU:V_sGLiP latest?d=qj6IDK7rITs latest?i=GGzSxqWPS7k:1NLHvQ6QnYU:gIN9vFwGGzSxqWPS7k
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments