I'm on Linux Mint 20, and somehow I've managed to make GNOME terminal always launch into a specific directory (it cds into my usual working directory). While it seemed like a good idea at the time, I've regretted it sincerely since. The problem is, I can't figure out how to revert it.
alias www=cd /media/daniel/Webdev/html
This occurs both when I launch the terminal from cinnamon's menu, from cairo-dock, from another terminal or when I right-click and select "open in terminal".
Can anyone tell this dumb dumb where he screwed up? I'd be super grateful for any tips.
Thank you for your time!
Edit:
Here's the content of my ~/.config/user-dirs.dirs:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
For the record, posting the hints I had suggested in the comments:
gnome-terminal
, go to the root of your homedir (cd ~/
) and run a "nested shell" with trace mode on (bash --login -i -x
).cd
command (printed in the trace so obtained).gnome-terminal
launcher (by running locate org.gnome.Terminal.desktop
or so) and inspect that file:Path=
key in the freedesktop.org spec.