I am on a SUSE Linux Enterprise Desktop 11 (SP4) machine, with Gnome 2.28.2 running. I set a keyboard shortcut to launch gnome-terminal command. And I also added a Launcher shortcut to Panel to do the same.The launcher shortcut on the panel works correctly. It brings up the terminal and sources my profile and changes directory to my home directory.But the keyboard shortcut brings up the terminal, does NOT source my profile and changes directory to /How can I make the keyboard shortcut open the terminal while also sourcing my profile and cd-ing into my home directory?
Keyboard shortcut to open gnome-terminal in GNOME 2.28.2
keyboard shortcuts;gnome terminal
Answer 1 - Modify gnome shortcut to open correct directoryIt is possible to modify shortcuts in Gnome using the gconf-editor, which you may or may not need to install by running the following command.yum install gconf-editorAfter starting the program you will go to apps > metacity > keybinding_commands as seen in the image below.Next you will select an unused or modify an existing shortcuts value' to the following:gnome-terminal --working-directory=/path/to/dirThis will not source your .profile, but it will ensure the shortcut opens in the appropriate directory.Answer 2 - Change default working directory in GnomeIt is possible to modify default working directory in Gnome using the gconftool-2, which you may or may not need to install by running the following command.yum install gconftool-2Then run the following as your user to fix the current sessiongconftool-2 --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir trueThen as root, run the following command to make this take effect on logingconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --set --type=bool /apps/nautilus-open-terminal/desktop_opens_home_dir trueSourcesANSWER-1 nixtutor.com - Adding Custom Shortcuts to GnomeANSWER-2 redhat.com - How do I change the default working directory of terminal applications