-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Set as default
seems to have no effect on Ubuntu 22.04 LTS (using Snap)
#34053
Comments
@hamirmahal thanks for the report - I cleaned up the formatting, I hope you don't mind Are you using Brave as a Snap? I know there can be problems with a few things when it's installed as a Snap. Set as default can not work, trying to create PWAs doesn't work properly too. Please let us know The alternative would be to uninstall and use the install instructions at https://brave.com/linux/ |
cc: @wknapik - not sure if there is a permission we're missing (ex: brave/brave-browser-snap#25) |
@bsclifton you're welcome! |
I installed Brave via Snap on Ubuntu 22.04 LTS. I assumed that was the "standard" way to do it because Brave via Snap was one of the first things I saw on a fresh install of Ubuntu. |
I think I'll give this a look. |
I wrote this about setting the default browser on Arch Linux, but it applies to any distro/browser. I just ran the following test in a fresh Ubuntu 22.04 VM:
Then ran a similar test again, but started with Chromium installation, followed by Brave installation. Chrome was set as default when installed. Then Brave was set as default when installed. Setting as default from withing Chromium didn't seem to work, but it did work from Brave. Both browsers didn't always display the prompt to set as default when not default. Either I'm doing something weird, or this is a mess. Most threads/issues I can find about this online, for Firefox, Chromium and Brave end with the advice to uninstall the snap and use the native app. While that's not a fix for the snap, it's a fix for the user. We can dig deeper. |
Repeated tests do seem to indicate that both the Firefox and Chromium snaps are able to set themselves as default, while the Brave snap can not. |
I did exactly this and the |
I was hoping the 'use system default' setting for Brave's theme would fix itself when I got off the |
I might have a lead on a fix, need to consult the snapcraft forum. |
The root cause here is that the snap app is called "brave", so the browser needs to refer to brave.desktop, but refers to brave-browser.desktop. The solution is to either rename the snap app to "brave-browser" (each snap can have multiple apps defined), which has the downside of changing what users need to execute to launch the browser ( The browser change looks like the better option at this point, since we apparently can't set an alias from the old snap app to the new one. I think just allowing the variable-based override in official builds would be enough (https://github.com/brave/brave-core/blob/master/chromium_src/chrome/common/channel_info_posix.cc#L74), or we could detect that the app is running as a snap at runtime and alter the name to a static "brave.desktop". |
I'm still waiting for replies on the snapcraft forum, but in the meantime I'll test the browser change and if it works, will open a PR. |
Confirmed that brave/brave-core#20892 + brave/brave-browser-snap#30 resolve this issue |
This should be fixed in the next snap package release |
Set as default
seems to have no effect on Ubuntu 22.04 LTSSet as default
seems to have no effect on Ubuntu 22.04 LTS (using Snap)
Labelling the above as |
Confirmed fixed via a test on Ubuntu 22.04 |
Description
Setting Brave as the default browser seems to have no effect on Ubuntu 22.04 LTS. I make it the default via settings, but I still receive the prompt to set Brave as my default browser after doing so.
Screencast.from.11-01-2023.04.56.08.PM.webm
Actual result:
Brave asks me to set it as my default browser, even after I have already done so, on Ubuntu 22.04 LTS.
Expected result:
Brave does not prompt me to set it as my default browser after I have already done so.
Reproduces how often:
Regularly
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
The text was updated successfully, but these errors were encountered: