DEV Community

Eric F 🇺🇦
Eric F 🇺🇦

Posted on

1

Stop Chromium from asking about default browser

I have to admit, I'm not a huge Chrom* fan - but still need it from time to time. So, I have it installed. It comes with a few annoyances though… One is it keeps asking about not being the default browser. I use Firefox, of course. :) So, here's a quick-tip on how to disable that.


After searching around a little bit and found the great startup parameter -no-default-browser-check. So, to use it… Let's not mess with the original file. It might be overwritten on any update.

Copy the original file into ~/.local/ instead.

cd ~/.local/share/applications
cp /usr/share/applications/chromium-browser.desktop .
Enter fullscreen mode Exit fullscreen mode

Now you can open the file in your favorite editor, and then there are 3 places to edit.

I also cut out all the optional translation lines - just keeping the default and swedish. So, the file looks like this after my edits:

[Desktop Entry]
Version=1.0
Name=Chromium
Comment=Access the Internet
Comment[sv]=Surfa på Internet
GenericName=Web Browser
GenericName[sv]=Webbläsare
Exec=/usr/bin/chromium-browser -no-default-browser-check %U
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chromium-browser
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Chromium-browser
Keywords=web;browser;internet;
Actions=new-window;new-private-window;

X-Desktop-File-Install-Version=0.23

[Desktop Action new-window]
Name=Open a New Window
Name[en-US]=New Window
Name[sv-SE]=Nytt fönster
Exec=chromium-browser -no-default-browser-check %U

[Desktop Action new-private-window]
Name=Open a New Private Window
Name[en-US]=New Private Window
Name[sv-SE]=Nytt privat fönster
Exec=chromium-browser -no-default-browser-check --incognito %U
Enter fullscreen mode Exit fullscreen mode

Now, you can also checkout this great post by @rahedmir on “How to Fix Google Chrome/Chromium asks for password to unlock keyring in Linux”, to make it stop asking about the keyring.

If you want that one to? Edit your changes above, and use them together as:

-no-default-browser-check --password-store=basic
Enter fullscreen mode Exit fullscreen mode

No more bugging about not being the default browser. 🤞 Hope you found it useful.👍

· Eric

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay