LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   launch x-terminal-emulator with profile (https://www.linuxquestions.org/questions/debian-26/launch-x-terminal-emulator-with-profile-779117/)

wideyes 12-31-2009 01:48 PM

launch x-terminal-emulator with profile
 
Hello all! Sorry for the newbish question, but I figured since I'm using Debian Lenny I'd post it here.

Simple request: I'm trying to launch a root terminal with a profile preloaded, but I'm not yet used to the way gnome handles its syntax, so the default link to root terminal has me confused:
Code:

gksu -D Terminal -- env -u ORBIT_SOCKETDIR /usr/bin/x-terminal-emulator
Apparently, the method using gnome-terminal is to add a trailing
Code:

--window-with-profile=PROFILENAME
but this did not work, probably because in this case I'm not calling directly on gnome's terminal.

I'm sure there is an easy fix. Thanks in advance.

evo2 12-31-2009 09:57 PM

I haven't used gnome-terminal in a while, but a couple of things to note:

1. If you really want to used gnome-terminal, call it explicitly, don't use x-terminal-emulator, since this could point to a different terminal.

2. In addition to '--window-with-profile=FOO' you may need to pass '--disable-factory' (please check the man page for the exact flag name).

Cheers,

Evo2.

cola 12-31-2009 11:39 PM

Quote:

Originally Posted by wideyes (Post 3810228)
Hello all! Sorry for the newbish question, but I figured since I'm using Debian Lenny I'd post it here.

Simple request: I'm trying to launch a root terminal with a profile preloaded, but I'm not yet used to the way gnome handles its syntax, so the default link to root terminal has me confused:
Code:

gksu -D Terminal -- env -u ORBIT_SOCKETDIR /usr/bin/x-terminal-emulator
Apparently, the method using gnome-terminal is to add a trailing
Code:

--window-with-profile=PROFILENAME
but this did not work, probably because in this case I'm not calling directly on gnome's terminal.

I'm sure there is an easy fix. Thanks in advance.

gnome-terminal is not x-terminal-emulator

evo2 12-31-2009 11:53 PM

Quote:

Originally Posted by cola (Post 3810526)
gnome-terminal is not x-terminal-emulator

Actually, on a Debian system it may be, depending on how the "alternatives" are set for x-terminal-emulator.

Evo2.

wideyes 01-01-2010 02:57 PM

Thanks for the replies, folks! This is why I'm so confused: the terminal I'm getting looks like a gnome-terminal, but it's not. The "regular" terminal gnome supplies is called with gnome-terminal, but for some reason the root terminal is executed with x-terminal-emulator. I wonder if this has to do with special access/privileges/security differences that make it preferable as a root terminal. After checking the man page for x-terminal-emulator and doing some googling, I can't find a way to do in x-terminal-emulator what seems to be pretty easy to do in gnome-terminal.

If I'm launching gnome-terminal with gksu, will that make it more or less a root terminal?


All times are GMT -5. The time now is 11:08 PM.