beaker icon indicating copy to clipboard operation
beaker copied to clipboard

Default Browser Settings not stored

Open rzelnik opened this issue 4 years ago • 6 comments

I would like to set Beaker as default browser for hyper:// links. When I click to Settings > General > Default Browser Settings > hyper://, then go outside the General tab, then go back to General tab, I see that the "Default Browser Settings" wasn't updated. It always shows this:

Set Beaker as the default browser for:

  • [ ] http://
  • [ ] hyper://
  • [x] dat://

Operation System: Ubuntu Linux 20.04 Beaker version: recent from git

rzelnik avatar May 09 '20 03:05 rzelnik

Are you running from source using npm start? It might be related to that.

pfrazee avatar May 10 '20 17:05 pfrazee

Are you running from source using npm start? It might be related to that.

The desktop file wouldn’t be registered in that instance, so that could indeed be the cause of this problem.

There’s no default browser hijack protection system to worry about, as seen on Windows and macOS. However, there also isn’t a good way to do this from within a sandbox. I ’m seeing in Bugzilla that Firefox haven’t been able to fix this problem either.

https://github.com/beakerbrowser/beaker/blob/9239d3b68c58bcaca017e690d36b6080821d472c/app/background-process/browser.js#L288

The above won’t work in Flatpak and Snap. The DOT_DESKTOP_FILENAME file doesn’t exist in these distributions. You’d need to specify the modified desktop files these install instead. These execute flatpak start or snap run instead of the binary directly. And it wouldn’t help anyway as the sandbox would prevent it from making changes to host system.

Maybe hide these options when OS == Linux? Installing the desktop file will add Beaker to the default apps screen on KDE and GNOME. It will also be the default handler for dat: and hyper: by default as there is — presumably — no other apps that register these protocols. You could replace the options with an unconditional call to action: “Please use Beaker as your default web browser! 😍”

da2x avatar May 10 '20 23:05 da2x

Are you running from source using npm start? It might be related to that.

Yes, I run Beaker from source using npm start.

rzelnik avatar May 11 '20 03:05 rzelnik

Same issue here: appimage Version: 1.0.0-prerelease.7

danrobi11 avatar Aug 24 '20 08:08 danrobi11

Same here as well on Ubuntu 20.04 installed with snap. About to try to build from source.

joshumu avatar Oct 22 '20 04:10 joshumu

So I have installed this on two machines and installing with snap, flatpak, and building from source, all with the same problem. I cant see any dat pages and none of the changes i make in settings remain after refresh.

joshumu avatar May 03 '21 15:05 joshumu