-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set Brave as default browser Arch Linux #2377
Comments
+1 from Community: |
I solved this problem manually setting xdg configs:
|
could you try this: |
|
tested here, |
I think that the next step in debugging this is working out how Arch is doing defaults/handlers differently from other distros so that we can detect and support that. |
Confirmed this is happening on KDE Neon as well. I don't think this is an OS problem, rather a problem with how Brave is self-detecting if it's the default or not. |
The erroneous "Set as Default" dialog is still happening on Arch.
Brave is set as the default for .html, http and https, but the dialog still pops up... |
What is the output of Does making Brave the default using |
@fmarier not sure Arch has |
I also saw So I think you're right, that last part looks like a Debian-specific thing. |
For the ones like me who manually set Brave as default but were tired of the popup at every startup: just click the X instead of "Set as default". Took me almost a week to realize this :) EDIT. I also realized it was already been said some comments up here: #2377 (comment) |
Similar to @helionmelion If you want to see what is current the default browser in xdg use |
Yes I'm using the aur version now. |
I can confirm that this is still a problem in Arch with Gnome 3.32.2 and kernel 5.2.2-arch1-1-ARCH. I have set Brave as the default browser in the Gnome Control Center as well as run the following commands, without luck:
Running Clicking |
I tried to set
but Brave was still showing the pop-up, so after clicking on "Set as default" I checked:
So I thought, well maybe Brave is expecting the executable to be called
opened Brave, clicked on "Set as default". Logged out of my user and back in to check if it worked and the pop-up was gone!
Hope this helps. |
Interesting. I wonder whether that's something that the Brave maintainer in Arch could add to the package. |
I figured it out, You need to set the HTML default application to Brave for the popup to stop appearing (Tested with KDE only, on Arch Linux)
|
You can also just click the 'x' instead of 'Set as Default' and the popup will stop appearing |
Using sudo was the way I fixed it: 517 sudo xdg-settings set default-web-browser brave.desktop Randomly tried all these, all of them failed: 502 xdg-settings set default-web-browser brave.desktop |
On Debian 9 x64 (using i3wm) nor To solve the problem I had to manually edit
|
Possible work-around for Arch Linux, courtesy of #11032 (comment):
|
If are you using Brave Nightly follow these steps: xdg-mime default brave-browser-nightly.desktop x-scheme-handler/https
xdg-mime default brave-browser-nightly.desktop x-scheme-handler/http
xdg-settings set default-web-browser brave-browser-nightly.desktop Hope it helps 👍 |
I am using archlinux with xmonad, I install brave-bin. My solution, check the desktop entity name. ls /usr/share/applications | grep brave
# my result is: brave-browser.desktop if doest not exits, you can check in different location, see here. After you know what desktop name, you can try set xdg-settings set default-web-browser brave-browser.desktop Check xdg-settings check default-web-browser brave-browser.desktop
# this result must be a yes |
Arch documentation on default applicationshttps://wiki.archlinux.org/index.php/default_applications Brave .desktop filenames on Arch LinuxChoose a .desktop file corresponding to your chosen package:
Out of these, the brave-bin package is recommended. It's the most popular, is actively maintained, packages pre-built binaries and is kept up to date with upstream releases. Set Brave as default browserIt should be noted that setting default applications on Linux is not as straightforward, as on other systems. This is the flip side of the variety of possible setups across Linux distributions and within each one. Different software respects different ways of setting defaults, so YMMV, but To use the stable release of Brave as default (brave and brave-bin packages), execute the following: xdg-settings set default-web-browser brave-browser.desktop
xdg-mime default brave-browser.desktop x-scheme-handler/http
xdg-mime default brave-browser.desktop x-scheme-handler/https This should be enough. If not, setting the BROWSER variable to Relying on xdg-utils appears to also be the approach in Chromium-based browsers (including Brave). Debugging% xdg-settings get default-web-browser
brave-browser.desktop
% xdg-settings check default-web-browser brave-browser.desktop
yes
% xdg-mime query default x-scheme-handler/http
brave-browser.desktop
% xdg-mime query default x-scheme-handler/https
brave-browser.desktop
% echo "$BROWSER"
brave
% grep brave ~/.config/mimeapps.list
text/html=brave-browser.desktop
x-scheme-handler/http=brave-browser.desktop
x-scheme-handler/https=brave-browser.desktop
x-scheme-handler/about=brave-browser.desktop
x-scheme-handler/unknown=brave-browser.desktop
% Final notesIf the above doesn't work for you, please include any relevant information about your setup - most notably the desktop environment/window manager and the Brave package. |
Closing due to the instructions provided in the last comment. |
Copied from brave/browser-laptop#15323 by @Kallestofeles
Description
Cannot set Brave as the default browser in Arch linux. Set as default option does nothing.
System:
Kernel: 4.19.4-zen1-1-zen x86_64 bits: 64
Desktop: Gnome 3.30.2
Distro: Arch Linux
Steps to Reproduce
Rinse and repeat...
Actual result:
Expected result:
Reproduces how often:
Brave version (brave://version info)
Brave Version 0.56.15 Chromium: 70.0.3538.110 (Official Build) unknown (64-bit)
Reproducible on current release:
Website problems only:
Additional Information
The text was updated successfully, but these errors were encountered: