I am trying to open up 2 separate Chromium windows using /.config/lxsession/LXDE-pi/autostart. I am able to open both urls when adding two lines but they open in the same browser as two tabs. I would like to open them in two separate windows. Is this possible?

  • Have you looked through this to see if you can get what you want that way? – goldilocks Jun 24 '19 at 14:20
  • Thanks, that is a great resource. I have been able to create two windows with the --new-window switch on two lines . The issue is that the window size and position is only following the first --window-size and --window-position switch. Any thoughts? – Mark Vidmar Jun 24 '19 at 22:57
  • You're better off researching chromium usage on a larger exchange, e.g., Super User or possibly Unix & Linux. Or somewhere like reddit where there are groups dedicated specifically to chromium, or even from the chromium devs themselves, who surely have at least one mail list and IRC channel. First you find out if it is possible period, then if it doesn't work on the Pi, drill down on that. – goldilocks Jun 25 '19 at 13:15
  • Thanks for the help! – Mark Vidmar Jun 25 '19 at 15:45

Posting this here so hopefully it will help others.

After a bit of digging I found out the tricks to get this working.

First in Chromium you need to create a new user, (doesn't matter what it's called).

Then when editing /etc/xdg/lxsession/LXDE-pi/autostart

Use the following

@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --new-window --start-fullscreen http://google.com --window-position=0,0 --user-data-dir=Default --start-fullscreen
@chromium-browser --new-window --start-fullscreen http://bbc.co.uk --window-position=0,0 --user-data-dir='Profile 1' --start-fullscreen

Note the --user-data-dir setting and the --window-position setting, basically you need to treat the two screens as one big screen.

| improve this answer | |
  • this saved me a ton of hardship, thank you! – Sean Mayo Mar 18 at 21:10

(I wonder if this is still relevant to anyone anymore)

For me two Chromium windows worked (almost) right away without any actual tricks. I opened a Chromium-window, moved it to the secondary screen, maximized it by double-clicking the top-bar and then opened another Chromium window in the primary screen by simply clicking the web-browser icon anew. Voila, two windows.

In order to copy/paste between the two sessions, Chromium (or Google) required of me that I installed a plug-in for off-line usage in my browser.

Happy New Year


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.