LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Launching application + variables in FVWM (https://www.linuxquestions.org/questions/linux-software-2/launching-application-variables-in-fvwm-337942/)

Peff 06-28-2005 04:20 AM

Launching application + variables in FVWM
 
Hi

I would like to know the way to execute a more complex launching of an application in FVWM since I need to pass an environment variable at the same time.

this standard syntax works great as you'd expect:

+ "&W. Writer" Exec exec oowriter

But I need to do something like this:

+ "&W. Writer" Exec exec LANG=ko_KR.eucKR XMODIFIERS=@mi=Ami oowriter

I read the man page and even tried Piperead instead of exec , which only messed up my mouse. Quotes around the command didn't work either.

Setting the LANG environment variable globally causes unwanted side effects in other apps, so that's not a valid solution for me.

Suggestions?

thanks

Peff

oneandoneis2 06-28-2005 05:52 AM

Why is "exec" in there twice? I only use it once in all my menus, such as:

Code:

+ "&Xterm%term.png%"        Exec xterm -e /usr/bin/bash &
+ "&Links%links.png%"        Exec links -g -driver x http://www.google.com &
+ "&Hotsync%hotsync.png%"        Exec aterm -name bterm -tr -fg green -g 158x10+0-0 -e pilot-xfer -p /dev/ttyS0 -s /home/dominic/Stuff/Exe/Palm  &


Peff 06-28-2005 08:36 AM

Exec is in there twice, as FVWM requests it to avoid doubling the number of process running. Per the man page, it is reccomended although not necessarily needed. Hence, I heed the man page advice so it is in there.

I noticed your commands issued have options added, which I have no problems with FVWM executing either. it is the setting of environment variables before the actual command (oowriter in my case) that is causing trouble.

So, with that, any more suggestions? Anyone? Buehler?

thanks

Peff


All times are GMT -5. The time now is 08:54 AM.