Hi Stuart,

: Therefore I need to write a function to invoke this app that
: checks if the 'factory' is running, and invokes it if it is not, and
: invokes the 'client' if the factory is running

This should work, but I haven't tested it:

AddToFunc FuncStartMGT
+ I Any (MGT*) Exec exec multi-gnome-terminal --use-factory
+ I None (MGT*) Exec exec multi-gnome-terminal --start-factory-server

: I'm considering using PipeRead to call a script that does a ps to check
: for an instance of multi-gnome-terminal, and that returns the applicable
: parameters

Yeah, that would work too:

PipeRead `if /sbin/pidof multi-gnome-terminal >& /dev/null ; then echo Exec exec  
multi-gnome-terminal --use-factory ; else echo Exec exec multi-gnome-terminal 
--start-factory-server ; fi`

SCoTTie! :)
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to