To work around a bug in an application, I need to set an environment variable that it will see.
What’s the best way to do this?
I tried setting it in various
~/.bash_profile etc. but none of these seem to affect the environment when an app is started from the gnome-shell launcher.
The best solution I can think of is to copy the
.desktop file into
~/.local/share/applications and modify the commandline. I wonder if it’ll lead to a problem in the future when the package makes a change to the
.desktop file and I don’t notice to update my copy of it. Is there a better way?