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.
xtermyou may be better off to just run that (or any other plain terminal). Gnome in general seems to just make simple things difficult. – george2079 Jan 15 '18 at 17:28RunProcess[{"open", "-a", "Terminal"}]works on MacOS. – C. E. Jan 15 '18 at 17:31RunProcess[$SystemShell, All, "gnome-terminal --working-directory=" <> Directory[]]work – Suba Thomas Jan 15 '18 at 18:19