Witko / nvidia-xrun

Utility to run separate X with discrete nvidia graphics with full performance
GNU General Public License v2.0
488 stars 69 forks source link

Force app open on diferent DISPLAY #107

Open ingmarcosp opened 5 years ago

ingmarcosp commented 5 years ago

I have a small issue, some applications opens on different display. For example, if I have some intel/Gnome on display :0 and nvidia-xrun/icewm on :2 and in this i open terminator, terminator show up on the intel/gnome(DISPLAY=:0) and not on nvidia-xrun/icewm(DISPLAY=:2).

how can I solve this problem?

michelesr commented 5 years ago

What's the value of the DISPLAY environment value in the session you use to run the application? You can check it with:

echo $DISPLAY

Not sure of how terminator works, but if somehow its main process was started in the other display it would keep that environment variable set to the initial display (that happens to me quite often when resuming a old tmux session). Try to kill terminator and start it from the new display or simply override the value of DISPLAY with:

export DISPLAY=:2
ingmarcosp commented 5 years ago

I try it, and does not work

michelesr commented 5 years ago

@ingmarcosp does this happen with all the applications or just terminator? Terminator might have a daemon that runs in a particular display so windows gets created there too.

ingmarcosp commented 5 years ago

Other apps do it to. firefox, files (gnome), I notice thad this happen when I login first in Gnome and then open the new X with nvidia-xrun. IF I don't login to gnome then works well.