Search code examples
linuxfirefoxcommand-linemultiple-monitorsautostart

Starting two times firefox on different monitors


i'm using openthinclient and try to create a script that starts iceweasel in fullscreen on a machine two times on different monitors (each instance on a different monitor).

Is that even possible?

At the moment I only run

iceweasel -new-window http://stackoverflow.com -new-window http://www.google.com

So two instance are running. How can I move the windows to other monitors?


Solution

  • If I remember well on Fedora you can choose the display before starting a windowed app by setting the var DISPLAY:

    xhost +localhost
    DISPLAY=:0.0
    gui-app
    

    The first number of DISPLAY=:X.0 is the number of the display.

    Try with your OS (Debian?)


    The list of commands that works for me on Centos 7:

    xhost +localhost
    DISPLAY=:0
    firefox     => openned on the first monitor
    DISPLAY=:1
    firefox     => openned on the second monitor