I've used electron
to create desktop application on Ubuntu 14.04 Desktop and used spawn
in child_process
to create child process. However, when I tried to create gnome-terminal
, its parent process is not electron
according to pstree.
My code is:
var spawn = require("child_process").spawn;
spawn("gnome-terminal");
According to pstree,
init───lightdm───lightdm───init───gnome-terminal
Expected result:
init───lightdm───lightdm───init───bash───npm───sh───node───electron───electron───electron───gnome-terminal
xterm
andsakura
will create separate processes for each instance. Both can be installed from the repositoryuniverse
(and I thinkxterm
comes with the installation of Ubuntu 14.04 LTS).xterm
is an old Unix tool.sakura
is a modern tool. – sudodus Nov 28 '18 at 10:53