Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-23-2017, 06:34 PM   #1
Registered: Dec 2016
Posts: 74

Rep: Reputation: Disabled
Starting Opera browser maximized

Opera now doesn't open properly in Linux Mint anymore, it doesn't open maximized by itself.

If you open the launchers and change the command from "opera %U" to "opera %U --start-maximized", then it opens mid-size at first, then jumps to maximize. This is great!

However, this only works in each specific launcher, and the "new window" and "new private window" options from the icon on the taskbar/panel, well, their launchers are "missing" - can't find them anywhere.

Below is the file "opera.desktop" from "/usr/share/applications" in Linux Mint 18.1 Cinnamon.

it's the only file I can find that refers to "new window" and "private window" - I couldn't find anything about opera in "~/.local/share/applications/" but there's other copies of this in


But when I edit the 2 lines that say (in any or all of them)

"Exec=opera --new-window" to say "Exec=opera --new-window, --start-maximized"
"Exec=opera --private" to say "Exec=opera --private, --start-maximized"

there's no change in the window behaviour. What am I doing wrong here?

This is the file, I edited it as root even:

[Desktop Entry]
GenericName=Web browser
Comment=Fast and secure web browser
Exec=opera %U --start -maximized

[Desktop Action NewWindow]
Name=New Window
Exec=opera --new-window

[Desktop Action NewPrivateWindow]
Name=New Private Window
Exec=opera --private
I'm really getting lost here - do we have someone who can see what I'm doing wrong? Does anybody know the right syntax for this? Specifically the "EXEC" lines.
Old 05-23-2017, 07:16 PM   #2
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: High Sierra
Posts: 9,213
Blog Entries: 37

Rep: Reputation: Disabled
I answered you at
advice below...

Last edited by Habitual; 05-23-2017 at 07:19 PM.
Old 05-23-2017, 07:18 PM   #3
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: High Sierra
Posts: 9,213
Blog Entries: 37

Rep: Reputation: Disabled
Exec=opera %U --new-window --start-maximized

Exec=opera %U --private --start-maximized
"--start -maximized" is incorrect.
Old 05-23-2017, 11:53 PM   #4
LQ Addict
Registered: Dec 2013
Posts: 9,396
Blog Entries: 7

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
i think the whole approach is wrong; windowmanagers remember window size & position and will attempt to re-open it accordingly unless the application explicitely tells it otherwise. is opera doing that?
have you tried, with an untainted .desktop launcher, to launch opera, maximize it, close it, and re-launch? it should now be maximized.

this has been true for every window manager i've used.
if cinnamon does not do it this way i'd say it is flawed.

hmm, maybe this is opera's doing after all.
have you tried starting it without '--private'?
maximized windows give visited webpages data about your screen resolution, so maybe opera does this on purpose?

Last edited by ondoho; 05-23-2017 at 11:55 PM.
Old 05-24-2017, 08:39 AM   #5
LQ Guru
Registered: Sep 2013
Distribution: Slackware 14.2 / Slackware 14.2 current / Manjaro
Posts: 6,657

Rep: Reputation: 1336Reputation: 1336Reputation: 1336Reputation: 1336Reputation: 1336Reputation: 1336Reputation: 1336Reputation: 1336Reputation: 1336Reputation: 1336
yeah what @ondoho said, as I was going to mention that you are fighting against the Window Manager too. If it is set to remember last state of window when you log out by whatever means then it will recover that state when you start that window again. against how you have it set to open.

now it is a mater of who gets precedents over each type of window that gets opened in that Window Manager.
Old 05-24-2017, 09:32 AM   #6
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
Habitual, that was one of the ways I tried, and it did nothing. And "--start-maximized" comes from a list of parameters for Chromium browser, found at

so what should it be, please? That list is of course not necessarily 100% correct.

As for the window manager, one of the files with these contents is in the cinnamon files, and changing it didn't help either.

I'm going to go back through and document everything in the next little bit, and see where that takes us. And again let everybody see it to aid creativity.
Old 05-24-2017, 09:47 AM   #7
Registered: Dec 2016
Posts: 74

Original Poster
Rep: Reputation: Disabled
A while back after one of the updates, I don't know which one, Opera starting opening at mid-size. Nothing I tried from the standard playbook, like maximising-and-closing, had any effect.

After weeks of off-and-on searching for a solution, as you can see from the various questions i posted, I must have used the right search question and the Chromium Switches showed up. Absolutely wonderful.

So when I added
to the opera launch commands that I could find, I thought it fixed. Alas, opera seems to load from OTHER launchers for 1. opening from a mail link for example these forums from my email 2. the "new window" option 3. the "New Private Window" option.

After again ging nuts for a little, I found 3 places where the string "opera %U' could be found.

I've changed all of them, one-at-a time and all-together, but nothing has worked so far.

I'm now assuming that it's either a plain syntax issue, or that ther's somewhere else I haven't found that's key to this.

Opera has become the best browser by far for me and my box - FF, Chrome and Vivaldi all have even worse issues (for me, anyway) so I have to keep at this, sometimes suffering fromextreme mulishness.

I will keep you all posted.
Old 09-17-2017, 01:58 PM   #8
LQ Newbie
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
Sorry for the necro, but I think I found out what is causing Opera to not open maximized.

When I go into the Opera settings and select On Startup > Continue where I left off, Opera will properly remember window position and size, and open maximized.

If I choose Open the start page or Open a specific page or set of pages, Opera will not remember window position and size, and will not start maximized.

Hopefully this sheds some light on the issue.

I'm running Opera 47.0.2631.80 on Mint 18.1 with KDE.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Opera Launches Final Version of Opera 10 Browser LXer Syndicated Linux News 0 09-02-2009 02:20 PM
Starting programs maximized in OpenBox mjjzf Linux - Software 0 01-27-2008 05:11 AM
Starting Maximized rhraz Linux - Newbie 6 05-05-2006 03:07 PM
Starting programs maximized in FluxBox mjjzf Linux - Software 1 10-16-2004 09:55 AM
Opera always start near-maximized - aargh Trygleren Linux - Software 1 06-22-2004 10:38 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration