LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-31-2009, 01:48 PM   #1
wideyes
LQ Newbie
 
Registered: Dec 2009
Posts: 19

Rep: Reputation: 0
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.
 
Old 12-31-2009, 09:57 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 12-31-2009, 11:39 PM   #3
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,035

Rep: Reputation: 65
Quote:
Originally Posted by wideyes View Post
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
 
Old 12-31-2009, 11:53 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by cola View Post
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.

Last edited by evo2; 12-31-2009 at 11:53 PM. Reason: typo
 
Old 01-01-2010, 02:57 PM   #5
wideyes
LQ Newbie
 
Registered: Dec 2009
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to set the .profile and launch an APP in a single command mohanvijay Linux - General 4 06-17-2009 09:39 PM
Terminal Emulator JMJ_coder Linux - General 3 09-26-2007 05:09 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
User Profile in use (Mozilla won't launch) raysr Mandriva 2 08-27-2005 10:10 PM
Terminal Emulator bmorgan98 Linux - Newbie 5 08-15-2005 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration