-
Notifications
You must be signed in to change notification settings - Fork 973
Pass desktop name to muon and set/check xdg-settings default-web-browser
#10974
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10974 +/- ##
==========================================
+ Coverage 54.15% 54.58% +0.43%
==========================================
Files 249 249
Lines 21813 21835 +22
Branches 3395 3400 +5
==========================================
+ Hits 11812 11918 +106
+ Misses 10001 9917 -84
|
…wser` requires brave/muon#309 fix #1336 Auditors: @bsclifton, @bbondy Test Plan: 1. Set default browser to non Brave browser 2. Open Brave from fresh profile 3. You should see Brave ask to set as default 4. Click Yes, in about:preferences#general, you should see Brave is your default browser 5. Check system setting, default browser should be Brave
2ffc76c
to
27e3fee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran into issues testing this...
- I ran
npm run build-package
andnpm run build-installer
and then installed that RPM - When running Brave, I was able to click
Set as Default
on Settings > General. This did update the default web browser. - I set
Always check on startup
to true in Settings > General (for default browser) - I went into settings for Ubuntu, set default browser as Firefox
- Exit Brave and relaunch
- Try to set Brave as default browser
- notice nothing happens
Wait- disregard the above... the That said- Brave does prompt each time (even though system settings shows it as the default) Maybe this is a different issue though, because setting it does work. What do you think, @darkdh? |
(for xdg-settings which do not support `default-url-scheme-handler`)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with @darkdh on Ubuntu 14 (which had an old version of xdg-settings; v1.0.2). Updated logic (see second commit). Works great ++
Pass desktop name to muon and set/check `xdg-settings default-web-browser`
Pass desktop name to muon and set/check `xdg-settings default-web-browser`
THIS PR MAKES brave/muon#309 REQUIRED BY #10552 LANDED SMOOTHLY
It is basically the subset of 5ec53ab
required by brave/muon#309
fix #1336
Auditors: @bsclifton, @bbondy
Test Plan:
default browser
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests