Is there any way I can launch a new instance of Google Chrome from the command line? I'm not referring to opening a new window - I want a new instance. Here's why:
Suppose I open Chrome and navigate to a page somewhere. Then I SSH into the same account from somewhere else. When I run:
google-chrome
...all I get is a new tab in the existing window. This is absolutely useless when I'm connected via SSH.
How can I launch a separate instance of Chrome that runs in the same account, but is usable with SSH?
This is a known bug. A workaround is to pass the argument
--user-data-dir=$(mktemp -d)
(or you can use any temporary or empty directory) to start a new session.I do this
Instead of the cpio/rm lines I'm using this now
Use
--new-window
parameter.Like: