Skip to content

Instantly share code, notes, and snippets.

@mvidaldp
Created March 18, 2020 12:33
Show Gist options
  • Save mvidaldp/461f00d2a43a0c1cd8c0f0b689288809 to your computer and use it in GitHub Desktop.
Save mvidaldp/461f00d2a43a0c1cd8c0f0b689288809 to your computer and use it in GitHub Desktop.
How to make Linux launchers (.desktop) use environment variables (normally on .bashrc)
[Desktop Entry]
# Note that this is not a complete launcher entry
# make sure you modify the Exec parameter of your launcher like this example
Exec=sh -c "YOURVAR=yourpathorvalue /usr/bin/yourApp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment