Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-02-04 21:57:14

beardedlinuxgeek
Member
Registered: 2013-02-27
Posts: 9

Setting environment variables in .desktop files?

I want to run the program Meld with the Adwaita theme, but I don't want to use that theme anywhere else. I've copied meld.desktop to ~/.local/share/application and set

[Desktop Entry]
Name=Meld
...
Exec=sh /home/beardedlinuxgeek/bin/meld-custom.sh

and my script is

#!/bin/bash
GTK_THEME="Adwaita" meld

And this all works perfectly. But is there a way for me to do this up without creating this extra meld-custom.sh script?

Offline

#2 2015-02-04 22:41:52

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: Setting environment variables in .desktop files?

use env as launch cmd:

env GTK_THEME="Adwaita" meld

Offline

#3 2015-02-05 08:46:02

beardedlinuxgeek
Member
Registered: 2013-02-27
Posts: 9

Re: Setting environment variables in .desktop files?

Thanks.

Offline

Board footer

Powered by FluxBB