Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

New Window is maximized automatically, I need a way to stop this. I am on Ubuntu 12.10 with Gnome shell. What should I do? What program is responsible for the window size, I notice in Unity Chrome always remember its windows sizes. Firefox, too.

share|improve this question
up vote 0 down vote accepted

Have you tried starting Google Chrome in a terminal with appropriate switches? For example, you could use --window-position and --window-size

--window-position ⊗ Specify the initial window position: --window-position=x,y    
--window-size ⊗ Specify the initial window size: --window-size=w,h    

So you'd enter something like google-chrome --window-position=x,y --window-size=w,h.

Once you've figured things out by trial and error, you could edit your Google Chrome .desktop file (/usr/share/applications) with a text editor and change the first Exec line from

Exec=/opt/google/chrome/google-chrome %U  


Exec=/opt/google/chrome/google-chrome --window-position=x,y --window-size=w,h %U

I just use

Exec=/opt/google/chrome/google-chrome --start-maximized %U  

Once you've edited the .desktop file you don't need to start via a terminal anymore.
These switches and more are found here: List of Chromium Command Line Switches.

share|improve this answer
I tried "google-chrome --window-position=20,20 --window-size=800,600" but it is not working, the window maximizes completely ignoring the parameters. – yanglifu90 Nov 27 '12 at 14:14
Gnome shell has provided some awesome feature. – yanglifu90 Nov 27 '12 at 14:15
For me, on Lubuntu 12.10, I can get the --window-size switch to work but the --window-position one doesn't do anything logical. I've e-mailed the link to this question to Peter Beverloo from whose site I got those switches. – user25656 Nov 27 '12 at 17:01
No joy. He suggested filing a bug. – user25656 Nov 27 '12 at 17:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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