After upgrading Ubuntu from 19.04 to 20.04.1, gnome-terminal always opens with / as working directory when lanched by name at a command prompt or in a desktop file, but NOT when launched from a button 'preferenced' to the dock or from the applications menu.
I had (and still have) a shortcut on my desktop that should open a terminal in a project directory, with this command in the .desktop file:
Exec=gnome-terminal --working-directory="~/git/ams-rpicm"
It still opens a terminal window like it used to, but with "/" as working directory.
Launching instances of gnome-terminal from another terminal window, I found that it's always the same, whether I include the --working-directory switch or not, and whatever path I specify in that switch: it always opens with "/" as working directory.
Does anyone have an idea what might cause this? It worked as expected in 19.04 just an hour ago.
The answer in open in terminal is not working after upgrading to 19.10 doesn't apply here, I already checked that.
gnome-terminal --working-directory="~/Documents"
launches a new window wherepwd
yields/
. You may have discovered a bug. – vanadium Jul 01 '20 at 12:29~
isn't expanded in this context. Did you try just--working-directory=git/ams-rpicm
? Although dumping you into/
may be a new behavior (on 3.28.2 it dumps me into my home dir) – steeldriver Jul 01 '20 at 12:29--working-directory=git/ams-rpicm
there. It is only because that started opening in /, that I added~/
to try to fix it. Changed it back, and it still does it. – Luc VdV Jul 02 '20 at 12:17