I can run system command from Mathematica with
Run["command"]. But if the
command starts windowed application then nothing happens.
Run["gnome-terminal"] does nothing.
How can I run external applications in graphical mode from Mathematica?
When I run
RunProcess["gnome-terminal"] I get an error
<|"ExitCode" -> 127, "StandardOutput" -> "", "StandardError" -> "/usr/bin/gnome-terminal: symbol lookup error: /usr/lib/x86_64-linux-gnu/libatspi.so.0: undefined symbol: g_type_class_adjust_private_offset" |>
I looked at the library
$ nm -D /usr/lib/x86_64-linux-gnu/libatspi.so.0 | grep g_type_class U g_type_class_adjust_private_offset U g_type_class_peek_parent U g_type_class_ref
So the symbol is defined in the library so I have no idea what is Mathematica complaining about.
I'm running on Ubuntu 14.04.
I tested few other applications other then
gnome-terminal and some of them works and some of them don't..strange.
Applications that does not work
gnome-terminal, emacs, nautilus
Applications that work
Mathematica, xterm, emacs-24.5
Okay, it has to do something with graphical interfaces. The difference between emacs and emacs-24.5 is that it has a different GUI. Maybe one is using GTK and the other is not, I do not know.