Answers to: gnome-terminal:keyboard shortcut launches terminal with / directory default!http://linuxexchange.org/questions/855/gnome-terminalkeyboard-shortcut-launches-terminal-with-directory-default<p><strong>Hello</strong> , I ran this 'gconf-cleaner' just for the sake() on My Debian Box.</p> <p>If I launch "gnome-terminal" from Applications Menu or from a panel icon ,it works with default $HOME directory(default behaviour). But ,with custom keyboard shortcut for Gnome Terminal in Gnome-2.30(Can set via menu System>Preferences>Keyboard Shortcuts),it opens in root directory.I mean in "/" directory. The Easy fix is to assign 'gnome-terminal --working-directory=%f ' or something similar.</p> <p>Is there a way to fix this Behaviour without adding any lines to ~/.bashrc etc ?</p> <p><strong>BTW ,$HOME variable is correct.rest everything is Fine.</strong></p>enThu, 10 Mar 2011 13:05:26 -0500Answer by CShttp://linuxexchange.org/questions/855/gnome-terminalkeyboard-shortcut-launches-terminal-with-directory-default/1507<p>Something weird.</p> <p>If you set "Ctrl+Alt+T" then working directory is ~ If you set ie "Mod4+R" (mod4 is Windows key) then working directory is /</p>CSThu, 10 Mar 2011 13:05:26 -0500http://linuxexchange.org/questions/855/gnome-terminalkeyboard-shortcut-launches-terminal-with-directory-default/1507Answer by Neil Mayhewhttp://linuxexchange.org/questions/855/gnome-terminalkeyboard-shortcut-launches-terminal-with-directory-default/1090<p>When you type <code>Ctrl-Alt-T</code>, or whatever key combination you set for "Open a terminal window" in Keyboard Shortcuts, gnome runs a specific command. This is defined by the gconf setting <code>/desktop/gnome/applications/terminal/exec</code>.</p> <p>Run the gconf editor from Applications > System Tools > Configuration Editor and have a look at the value of this key. You'll probably find that instead of being just "gnome-terminal" it has extra arguments such as <code>--working-directory=...</code>. Reset it back to just "gnome-terminal" and it should start up in your home directory.</p> <p>If it doesn't, then your default profile may have something unusual set in its preferences. In Terminal, select Edit > Profile Preferences and go to the Title and Command tab. Clear the boxes for "Run command as a login shell" and "Run a custom command instead of my shell".</p> <p>Note that the <code>/desktop/gnome/applications/terminal/exec_arg</code> gconf key is for when you ask gnome to run a command in a terminal. You shouldn't need to change this.</p>Neil MayhewSat, 17 Jul 2010 23:20:32 -0400http://linuxexchange.org/questions/855/gnome-terminalkeyboard-shortcut-launches-terminal-with-directory-default/1090Answer by Jazzhttp://linuxexchange.org/questions/855/gnome-terminalkeyboard-shortcut-launches-terminal-with-directory-default/880<p>Most of your options are covered <a href="http://stackoverflow.com/questions/844677/gemone-terminal-how-to-start-in-a-different-directory/844711#844711">here</a>.</p> <p>Also, since you cleaned your gconf files, I took a look at mine. Seems like there are lots of references to various profiles. You might want to set up different profiles and see what happens.</p>JazzThu, 17 Jun 2010 18:00:12 -0400http://linuxexchange.org/questions/855/gnome-terminalkeyboard-shortcut-launches-terminal-with-directory-default/880