Re: xterm vs gnome terminal
- From: JD <jd1008@xxxxxxxxx>
- Date: Mon, 02 May 2011 14:46:06 -0700
On 05/02/11 14:31, JD wrote:
On 05/02/11 14:09, Cameron Simpson wrote:I tried this variation:
On 02May2011 13:14, JD<jd1008@xxxxxxxxx> wrote:When I tried it I got this message:
| $ cat /home/jd/bin/viewer
| #!/bin/sh
| xterm -fn 12x24 -bg white -fg black -e vi $*&
|
| How can I replace xterm with gnome-terminal?
|
| I tried to simply change xterm to gnome-terminal
| but gnome-terminal does not recognize the args
| and never executes vi on the file selected.
I discovered to my horror several years ago that gnome-terminal wants to
use "-x" where xterm and most other terminals use "-e".
Have a look at "man gnome-terminal" for specifics.
But try this:
gnome-terminal -bg white -fg black -x vi ${1+"$@"}&
ALso note the change of $* - your origial script will break if you
get files
with whitespec in their names.
Cheers,
Failed to parse arguments: Unknown option -bg
Also, there is no man page for gnome-terminal on my F14.
gnome-terminal -x /usr/bin/vi "$*" &
and I do get the terminal, but the terminal has a bright red
banner in it with 3 lines:
There was an error creating the child process for this terminal
Failed to execute child process "/usr/bin/
vi" (No such file or directory)
On the right hand side of the terminal are 2 click buttons (rectangles):
Profile Preferences
Relaunch
I find it strange that gnome terminal would not recognize
the fully qualified pathname of an executable.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
- Follow-Ups:
- Re: xterm vs gnome terminal
- From: JD
- Re: xterm vs gnome terminal
- References:
- xterm vs gnome terminal
- From: JD
- Re: xterm vs gnome terminal
- From: Cameron Simpson
- Re: xterm vs gnome terminal
- From: JD
- xterm vs gnome terminal
- Prev by Date: Re: xterm vs gnome terminal
- Next by Date: Re: xterm vs gnome terminal
- Previous by thread: Re: xterm vs gnome terminal
- Next by thread: Re: xterm vs gnome terminal
- Index(es):
Relevant Pages
|