How to start applications with different environment variables from desktop?

Arne Götje (=?utf-8?q?=E9=AB=98=E7=9B=9B=E8=8F=AF?=) arne at
Tue Aug 3 10:08:18 BST 2004

Hash: SHA1

Hi list,

I want to have an easy way to start different applications with 
different shell environment varaibles.

I'm using simplefied / traditional chinese and japanese and have to set 
LC_CTYPE and XMODIFIERS accordingly to be able to input the characters 
into the application.

So, I though of having a Icon on my desktop for each input method and 
then something like this in the command execution field:


The only problem is: what is the correct variable to replace 
%APPLICATION with the program name I drag on that icon? I want to use 
it in a drag-and-drop manner, like we can drag a document onto the 
editor icon and then the editor opens that document automatically.
Is there a way to do this with programs instead of documents?

Is there a list of all available %SOMETHING variables?

A good candidate for this would also be kmail: sometimes I have to input 
different scripts into my mails. As there is currently no way to simply 
switch between chinese/japanese input methods in the running 
application, would it be possible to start a new instance of kmail with 
different environment settings when another one is running? I.e. the 
running one for displaying the mailfolders and the new one with the 
appropriate input method for typing a new mail?

- -- 
Arne Götje (高盛華) <arne at>
PGP/GnuPG key: 1024D/685D1E8C
Fingerprint: 2056 F6B7 DEA8 B478 311F  1C34 6E9F D06E 685D 1E8C
Key available at   Encrypted e-mail preferred.
Version: GnuPG v1.2.5 (GNU/Linux)

This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list