Score:0

Opening google-chrome from commandline with a specific window size

by flag

When I run the following command: nohup google-chrome-stable --incognito --window-size="770,570" index.html /dev/null &

it works when there is no chrome window opened already. Otherwise it opens with the same window size as the old one.

How can I fix this?

I wrote a function in my bashrc so that I can create an html directory and edit the files inside effciently. The code is part of that function.

I am using Ubuntu 20.04 and the version of bash thereof.

vanadium avatar
cn flag
You also mean that the file opens in the window that is already open? If so, that is important information that should be in the question.
Score:0
ng flag

Use --new-window:

nohup google-chrome-stable --incognito --window-size="770,570" index.html /dev/null ----new-window &
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.