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
xtermandsakurawill create separate processes for each instance. Both can be installed from the repositoryuniverse(and I thinkxtermcomes with the installation of Ubuntu 14.04 LTS).xtermis an old Unix tool.sakurais a modern tool. – sudodus Nov 28 '18 at 10:53