Adding Environment Variables to Linux GUI Apps
Find the app your looking for:
bash
sudo find / -type f -iname "*myapp*"Edit the file:
bash
nvim /usr/share/applications/org.myapp.MyApp.desktopYou’ll want to look for the Exec key, and prepend the env vars to the app command:
text
Exec=env MY_ENV_VAR=hello my-app-cmd %U