I am running Mate with two X screens specified in the xorg.conf (nVidia Quadro K420). I have two screens, one on each monitor. Each screen has top and bottom panels. If I create a launcher on either screen’s panel it launches the program on Screen 0. If from a terminal I issue a command such as DISPLAY=":0.1" pluma it will launch the program on the second monitor (Screen 1). However, if I place the command in a launcher it does nothing. Clicking on the launcher it does not launch the program. Can anyone help?
TIA,
Ken
when you issue the command in a terminal, does it require you to enter a password?
Hello Ken,
You can wrap the command like this:
sh -c 'DISPLAY=":0.1" pluma'
2 Likes
Thanks stevecook17201. No, I do not need to enter a password. I am running the program as myself - not with escalated permissions.
A double thanks to Misko_2083! That did the trick - at least on my CentOS6/Gnome2 OS. I need to swap hard drives to verify it on Mate but I suspect it will work fine. I guessed that I needed to get a shell to launch the program but I had no idea how to do that other than a script perhaps. I will test this on my Mate environment and post a confirmation.
Thanks to both of you for your prompt responses.
Ken
1 Like
Good morning Misko_2083,
I have tested your solution on my new installation and it works!!! I can add a launcher on my :0.1 display and it will launch the application on that monitor. Amazing. Just like it used to work on Ubuntu 9.10. Thank you so much for your assistance.
Ken
1 Like