Re: FVWM: Invoking gnome-terminal from from menus

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sat, 12 Oct 2002 14:50:37 +0000

On 12 Oct 2002 12:30:23 +0200, Marcus Lundblad wrote:
>
> 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)

I just tried this myself and indeed, it works when called gnome-terminal
directly and does not work when called from the script. But this has
nothing to do with FVWM. Try to run this script from the command line
and you will see the same results.

You may eliminate one process by prefixing all terminal programs with
"exec" like "exec gnome-terminal --start-factory-server --use-factory".
But this does not solve the original problem. Please report to GNOME
folks.

Regards,
Mikhael.
--
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 - 09:51:40 BST

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