I am currently trying to open a terminal in Linux from Mathematica in which the present working directory is given by the Directory[]
.
My naive attempt
RunProcess[{"gnome-terminal", "--working-directory=" <> Directory[]}]
does not seem to work and returns a standard error "error: XDG_RUNTIME_DIR not set in the environment". I am aware that this might not be a Mathematica specific problem but general answers regarding the same error message did nothelp me much so far.
xterm
you may be better off to just run that (or any other plain terminal). Gnome in general seems to just make simple things difficult. $\endgroup$RunProcess[{"open", "-a", "Terminal"}]
works on MacOS. $\endgroup$RunProcess[$SystemShell, All, "gnome-terminal --working-directory=" <> Directory[]]
work $\endgroup$