Categories: Discuss Chrome :

Is it possible to start google chrome in a new session?

Showing 1-4 of 4 messages
Is it possible to start google chrome in a new session? Affitz 2/4/11 3:21 AM
Google Chrome        10.0.648.6
Arch Linux (newest stable)

I'm using google-chrome in linux. My Xorg is set up to start two several X-Servers. So it's not possible to exchange windows between the two screens. When I start google-chrome on one screen, it's not possible to start another on the other screen since every time I try to start google-chrome, it just opens a new window in the existing session, which is on the wrong screen.

So my simple question is, if it is somehow possible to start a new session?
Re: Is it possible to start google chrome in a new session? Affitz 2/4/11 4:18 AM
Ok, solved it by myself. Here's the solution:

Assume your screens are :0.0 and :0.1 (you can check them out by typing "printenv DISPLAY" in a terminal on each screen).

1. Create two directories (e.g. $HOME/.google-chrome/session0.0 and $HOME/.google-chrome/session0.1)
2. Create a _executable_ script in /usr/local/bin/ (e.g. start_browser) with the following content:

#!/bin/bash

# remove ':' from screen id
PROFILE="session${DISPLAY#:}"

google-chrome --user-data-dir=$HOME/.google-chrome/$PROFILE

3. Start browser by executing the command "start_browser"

Your google-chrome then starts different sessions according to on which screen it became started.
Re: Is it possible to start google chrome in a new session? madskaddie 3/11/11 10:31 AM
VERY GOOD :)
Re: Is it possible to start google chrome in a new session? theseekerwho 4/15/11 1:14 AM
Works a treat.Thanks Affitz