Chrome always opens in full screen

Asked by Marc

I have Ubuntu 11.10 with Unity. I installed Google-Chrome. It was working fine and then some config parameter must have changed somewhere. Everytime I open Chrome from the Dash it opens full screen. I tried making the window smaller and closing it hoping Unity would 'remember' the configuration. I tried to find a Chrome setting for default size but there isn't one. How can I set the default size that a given program opens with in Unity?

Thank you,
Marc

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu chromium-browser Edit question
Assignee:
No assignee Edit question
Solved by:
Marc
Solved:
Last query:
Last reply:
Revision history for this message
Jaxon (jaxonkochel) said :
#1

Id trying doing the reverse of this and removing the -start-maximized parameter from your shortcut

http://www.browser-watch.com/2008/09/19/full-screen-google-chrome-on-open/

One thing that many users may find frustrating is that Google Chrome opens in window mode. Thankfully there is a simple fix for this. By editing the Google Chrome shortcut, you simply need to add the -start-maximized parameter to the end of the shortcut line.

Your new shortcut line should look something like this:

C:\Users\[user]\AppData\Local\Google\Chrome\Application\chrome.exe -start-maximized

Revision history for this message
Marc (ms-thebrookhavengroup) said :
#2

Thank you for the reply but I think it relates to Chrome on an MS Windows platform. How can I see and set the command line arguments used by the Lens on Ubuntu/Unity?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

gksudo gedit /usr/share/applications/chromium-browser.desktop

You'll need TAB to complete the filename, I use chromium but the file will be in there and you can edit the exec= line.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#4

To expand on what actionparsnip was saying at the end of post #3: If you're really using Google Chrome for GNU/Linux systems, rather than the related Chromium browser, then the .desktop file might be called something else, but the same technique should work. (It might be called chrome-browser.desktop or chrome.desktop, for example.)

Revision history for this message
Marc (ms-thebrookhavengroup) said :
#5

Actually, I solved this myself using CompizConfig, selecting Ubuntu Unity Plugin, and then the Experimental tab, and then setting Automaximize value to 100.