Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 05-30-2012, 01:49 PM   #1
LQ Newbie
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
Starting gnome-terminal in /home directory instead of /


I am running CentOS 6.2 with gnome2.

I've created a keyboard shortcut (through System->Preferences->Keyboard shortcuts) to open an instance of gnome-terminal.

This works fine, and gnome-terminal starts just fine.

However, it starts up in / where as I want it to start in my /home directory, which it does when I start the terminal from the shortcut in Applications->System tools->Terminal.

How can I do this? I've examined the contents of the .desktop file for the shortcut, and it just starts gnome-terminal without any arguments. When I start gnome-terminal without any arguments with the keyboard shortcut, it starts in /.
Old 05-31-2012, 05:15 AM   #2
Registered: Oct 2011
Location: Bolton, UK
Distribution: Arch local, Debian on VPS
Posts: 258

Rep: Reputation: 41
You can edit ~/.bashrc to add
cd ~/
at the end. This will then open all new terminals in your home directory.

Or to just to it for those terminals launched from your shortcut, change the shortcut to:

gnome-terminal --working-directory ~/

Last edited by Roken; 05-31-2012 at 05:21 AM.
Old 06-03-2012, 12:41 PM   #3
LQ Newbie
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you.

the --working-directory was precisely what I was looking for. As you mentioned, this was valid only for terminal started through the keyboard shortcut, as all terminals launched from elsewhere would indeed start in ~.


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
gnome-terminal:keyboard shortcut launches terminal with / directory default! deepclutch Linux - Desktop 1 06-21-2010 11:48 AM
stop gnome terminal from starting kafnir Linux - General 1 10-10-2007 12:20 PM
starting a gnome-terminal newbieMhke Linux - Newbie 6 04-25-2006 06:28 AM
Gnome Terminal Starting Directory - Help? mattisking Linux - Newbie 1 02-03-2005 02:41 AM
Starting terminal from nautilus at selected directory ericwsf Linux - General 0 04-14-2004 04:15 PM

All times are GMT -5. The time now is 04:06 PM.

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