FVWM: Invoking gnome-terminal from from menus

From: Marcus Lundblad <ml_at_update.uu.se>
Date: Sat, 12 Oct 2002 12:30:23 +0200 (CEST)

I have the following script to start a terminal, it permits to set an env
variable and provides some fallbacks.

----------------------------------------------------------------------

#!/bin/sh

if [ -n "$TERMINAL" ]; then
    `$TERMINAL` $* >/dev/null 2>_at_1
elif [ `which gnome-terminal` ]; then
    gnome-terminal --start-factory-server --use-factory -t "Terminal" $*
>/dev/null 2>_at_1
elif [ `which rxvt` ]; then
    rxvt -t Terminal $* > /dev/null 2>_at_1
else
    xterm -t Terminal $* > /dev/null 2>_at_1
fi

-----------------------------------------------------------------------

If I start gnome-terminals via FvwmConsole using the command line:
gnome-terminal --start-factory-server --use-factory -t "Terminal"

those terminals will share the same process (as inteded).
But if I use the script tried both in a menu and using FvwmConsole, the
terminals start in their own processes. There is a process called
"gnome-pty-helper"

Anyone have an idea?
(I would like to be able to use this script to increase the portability of
my configuration)


//Marcus

--
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 majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Oct 12 2002 - 05:31:26 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST