I want to have renamed copies of some executables use different processes when executed.
System: Lubuntu 18.04 Desktop 64 bit.
For example:
$ sudo cp -a /usr/bin/mate-terminal /usr/bin/mate-terminal-left
$ sudo cp -a /usr/bin/mate-terminal /usr/bin/mate-terminal-right
From a launcher, I execute mate-terminal-left
, which opens a terminal window on the left-half of the screen (due to my configuration settings for the OpenBox window manager).
Just for reference, I execute the following in that terminal:
$ ps -eo pid,command | grep -i 'terminal' | grep -ve 'grep'
19294 /usr/bin/mate-terminal-left
Now, with the left terminal still open, from another launcher, I execute mate-terminal-right
, which should open a terminal window on the right-half of the screen. However, mate-terminal-right
did not create a new process, but instead used the already active mate-terminal-left
process, hence it opens on the left as well.
$ ps -eo pid,command | grep -i 'terminal' | grep -ve 'grep'
19294 /usr/bin/mate-terminal-left
When I open mate-terminal-right
first, then it opens on the right, and then mate-terminal-left
will also end up on the right.
I have found that some executables, such as Geany work well for my left and right renaming approach, but other executables such as mate-terminal
and pcmanfm
use the same process for all instances, even when started with different names.
My question is: How can I cause mate-terminal-left
and mate-terminal-right
to each open as separate processes?
In response to the comments below that suggest how to make a left and right terminal, thanks for your suggestions. However, that is not what my question asks. I only used the example to provide a concrete explanation of why someone might want the same executable running in multiple processes, rather than multiple instances running in the same process. I used mate-terminal
only as an example, so I am not looking for another terminal.
The title of this question is what I am asking about: "How to cause copies of executables to open as separate processes?"
alias xterm-left='xterm -T 'xterm-left' -geometry +0-0 -fa default -fs 12'
– sudodus Nov 26 '18 at 14:05alias xterm-right='xterm -T 'xterm-right' -geometry -0-0 -fa default -fs 12'
– sudodus Nov 26 '18 at 14:05alias gterm-left='gnome-terminal --geometry=+0-0'
– sudodus Nov 26 '18 at 14:22alias gterm-right='gnome-terminal --geometry=-0-0'
– sudodus Nov 26 '18 at 14:23xterm
but alsosakura
starts a separate process for each instance.sakura
because it will run separate processes for each window. It can be installed from the repositoryuniverse
. – sudodus Nov 26 '18 at 16:55