0

This is for the program git-cola, although I think the question is more general. It is also using LM Cinnamon 18.

The environment variable I want to set is SCALE_GIT_COLA=2 so that the program looks good with a HiDPI display.

If I add export SCALE_GIT_COLA=2 to my .profile, then open a terminal and run git-cola, I get the desired effect.

However, if I use a launcher (I am using Albert, but again I think this is more general) to run git-cola, then it looks as if SCALE_GIT_COLA=2 has not been set.

How can I get launchers run through the Cinnamon desktop to respect environment variables set through .profile? Or, where else can I add these environment variables so that I get this behavior?

0

Copy git-cola.desktop file to ~/.local/share/applications/ and modify one line:

Exec=/usr/bin/env SCALE_GIT_COLA=2 git-cola
  • This didn't work for me. Still launches as if SCALE_GIT_COLA=2 has not been set. – evencoil Sep 17 '18 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.