• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Opera does not remember window size

    Opera for Linux
    4
    11
    9922
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      Same here (debian testing x64, openbox and opera installed from their repo). There is already an open topic about it, so please post there 🙂

      Reply Quote 0
        1 Reply Last reply
      • devlinp
        devlinp last edited by

        I found this list http://peter.sh/experiments/chromium-command-line-switches/#start-maximized

        and it shows "-start-maximized" as a parameter.

        Put it in the Opera launcher and bingo.
        Opera now opens maximized with this command in the launcher:

        in Linux:

        opera %U --start-maximized

        Reply Quote 0
          1 Reply Last reply
        • A Former User
          A Former User last edited by

          Thanks a lot for the tip!

          Reply Quote 0
            1 Reply Last reply
          • devlinp
            devlinp last edited by

            Here's where this stands now:

            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

            /home/Username/.local/share/applications/userapp-opera-KE9M0Y.desktop
            /home/Username/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop

            But when I edit the 2 lines that say

            "Exec=opera --new-window" to say "Exec=opera --new-window, --start-maximized"
            and
            "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:

            [code][Desktop Entry]
            Version=1.0
            Name=Opera
            GenericName=Web browser
            Comment=Fast and secure web browser
            TryExec=opera
            Exec=opera %U --start -maximized
            Terminal=false
            Icon=opera
            Type=Application
            Categories=Network;WebBrowser;
            MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-opera-download;
            Actions=NewWindow;NewPrivateWindow;

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

            [Desktop Action NewPrivateWindow]
            Name=New Private Window
            Exec=opera --private
            TargetEnvironment=Unity[/code]

            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.

            Reply Quote 0
              1 Reply Last reply
            • devlinp
              devlinp last edited by

              How do I edit this so you can read the file contents? It's messed up.

              Reply Quote 0
                1 Reply Last reply
              • A Former User
                A Former User last edited by

                You just change the 7th line in the file from

                Exec=opera %U
                

                to

                Exec=opera %U --start-maximized
                

                And here are the contents of the whole opera.desktop file if you want to check

                http://paste.debian.net/937473/

                (the link is valid for 7 days)

                Reply Quote 0
                  1 Reply Last reply
                • dalatkid17
                  dalatkid17 last edited by

                  new to both opera and also linux mint.
                  I see your advice but not sure how to impliment.
                  Can you do a step by step for a learner please

                  Reply Quote 0
                    1 Reply Last reply
                  • A Former User
                    A Former User last edited by

                    Open the opera.desktop file like so

                    sudo gedit /usr/share/applications/opera.desktop

                    Find the line I mention above (the 7th one) and change it to what I say. Then save and exit.

                    Reply Quote 0
                      1 Reply Last reply
                    • dalatkid17
                      dalatkid17 last edited by

                      Put command in with this reply:sudo: gedit/usr/share/applications/opera.desktop: command not found

                      Reply Quote 0
                        1 Reply Last reply
                      • A Former User
                        A Former User last edited by

                        There is a SPACE between "gedit" and "/usr/share/blablabla"...
                        Please type it correctly 😛

                        Reply Quote 0
                          1 Reply Last reply
                        • First post
                          Last post

                        Computer browsers

                        • Opera for Windows
                        • Opera for Mac
                        • Opera for Linux
                        • Opera beta version
                        • Opera USB

                        Mobile browsers

                        • Opera for Android
                        • Opera Mini
                        • Opera Touch
                        • Opera for basic phones

                        • Add-ons
                        • Opera account
                        • Wallpapers
                        • Opera Ads

                        • Help & support
                        • Opera blogs
                        • Opera forums
                        • Dev.Opera

                        • Security
                        • Privacy
                        • Cookies Policy
                        • EULA
                        • Terms of Service

                        • About Opera
                        • Press info
                        • Jobs
                        • Investors
                        • Become a partner
                        • Contact us

                        Follow Opera

                        • Opera - Facebook
                        • Opera - Twitter
                        • Opera - YouTube
                        • Opera - LinkedIn
                        • Opera - Instagram

                        © Opera Software 1995-