How to make a Desktop "shortcut" that opens the terminal but under a different directory than the default home?
Most terminal programs like xterm, urxvt, gnome-terminal have an option to change the starting working directory of the shell.
If you are using gnome-terminal, there is a special command line switch you have to provide to start the shell in a user defined directory. The command line switch I'm talking about is
--working-directory=DIRNAME
You should take a look at the manual pages of gnome-terminal to verify this.
So, if you want to make a desktop shortcut, the command you have to enter would be:
gnome-terminal --working-directory=/home/you_username/Dropbox/GTD
Beforehand feel free to test the command in your current terminal session.
For users on Linux Mint, follow these instructions
- Right click on the Desktop
- Select "Create Launcher"
- Name this shortcut with whatever name you want
- In the Command field, enter
gnome-terminal --working-directory=XXX
. Make sure to replaceXXX
with the directory you want it to go to (see the example above)