Skip to content
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

Can not set LibreWolf as default browser #7873

Closed
he3als opened this issue Jan 30, 2022 · 17 comments
Closed

Can not set LibreWolf as default browser #7873

he3als opened this issue Jan 30, 2022 · 17 comments
Labels

Comments

@he3als
Copy link
Contributor

he3als commented Jan 30, 2022

Bug Report

Package Name: librewolf

Current Behaviour

Clicking the 'Make Default' button in LibreWolf to set it as the default browser does nothing and does not work. It also does not show up in the modern Settings app for Windows 10/11 and does not show in Control Panel for Windows 8.1 and older.

librewolf_o586QNhyM5

Expected Behaviour

Clicking the 'Make Default' button should make an entry in the default apps of the modern Settings app and the Control Panel as an option and the button should set LibreWolf as the default browser.

System details

Windows version: 10 21H2

OS architecture: amd64

PowerShell version: Powershell 5 - Build 19041 - Revision 1237

Scoop configuration: Default

@he3als he3als added the bug label Jan 30, 2022
@he3als
Copy link
Contributor Author

he3als commented Jan 30, 2022

Using the regular installer would fix this

@criticic
Copy link
Contributor

You have to edit the registry. See https://github.com/amreus/scoop-default-browser/blob/main/firefox-default-scoop-template.reg for reference.

@rashil2000
Copy link
Member

Yes. This is by design. Scoop will not modify the registry to register applications as protocol handlers or type associations.

But you can select a default browser by providing full path to the application.

@criticic
Copy link
Contributor

Btw update to 96.0.3 to get that template to work as earlier versions did not pass parameters (https://gitlab.com/librewolf-community/browser/windows/-/commit/31eb3460391ea449bccd89677226c35489051bb0)

@he3als
Copy link
Contributor Author

he3als commented Jan 30, 2022

@criticic do you know why when i open a link that it opens a whole new librewolf window and it is pretty slow instead of just opening in the current librewolf window open? here is the reg i have got:


[HKEY_CURRENT_USER\SOFTWARE\RegisteredApplications]
"LibreWolf (Scoop)"="Software\\Clients\\StartMenuInternet\\LibreWolf (Scoop)\\Capabilities"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\LibreWolf (Scoop)\shell\open\command]
""="\"C:\\Users\\he3als\\scoop\\shims\\librewolf.exe\""

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\LibreWolf (Scoop)\DefaultIcon]
""="C:\\Users\\he3als\\scoop\\apps\\LibreWolf\\current\\librewolf-portable.exe,0"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\LibreWolf (Scoop)\Capabilities\FileAssociations]
".html"="ScoopLibreWolfHTM"
".htm"="ScoopLibreWolfHTM"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\LibreWolf (Scoop)\Capabilities\URLAssociations]
"https"="ScoopLibreWolfHTM"
"http"="ScoopLibreWolfHTM"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\LibreWolf (Scoop)\Capabilities]
"ApplicationName"="LibreWolf (Scoop)"
"ApplicationIcon"="C:\\Users\\he3als\\scoop\\apps\\LibreWolf\\current\\librewolf-portable.exe,0"
"ApplicationDescription"="LibreWolf"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\LibreWolf (Scoop)]
""="LibreWolf (Scoop)"

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibreWolfHTM\shell\open\command]
""="\"C:\\Users\\he3als\\scoop\\shims\\librewolf.exe\" %1"

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibreWolfHTM\Application]
; Name in Dialog
"ApplicationName"="LibreWolf (Scoop)"
"ApplicationDescription"="It's LibreWolf."
"ApplicationIcon"="C:\\Users\\he3als\\scoop\\apps\\LibreWolf\\current\\librewolf-portable.exe,0"

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibreWolfHTM]
""="LibreWolf (Scoop) HTML Document"```

@he3als
Copy link
Contributor Author

he3als commented Jan 30, 2022

it also opens a temporary cmd window, which is a bit annoying. how can i fix it?

@criticic
Copy link
Contributor

Instead of librewolf-portable.exe maybe try librewolf.exe, ( it can be found in (scoop prefix librewolf) > Librewolf > librewolf.exe )

@criticic
Copy link
Contributor

@rashil2000 wouldn't it make sense to register the apps, like it is done for vscode. Maybe a script can be added. AFAIK it doesn't require admin perms.

@rashil2000
Copy link
Member

Check ScoopInstaller/Scoop#4633

@criticic
Copy link
Contributor

maybe add a note with a link to a registry file, which they can use if they want.

@criticic
Copy link
Contributor

criticic commented Jan 31, 2022

Windows Registry Editor Version 5.00


[HKEY_CURRENT_USER\SOFTWARE\RegisteredApplications]
"Librewolf (Scoop)"="Software\\Clients\\StartMenuInternet\\Librewolf (Scoop)\\Capabilities"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\shell]
[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\shell\open]
[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\shell\open\command]
@="\"C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe\" \"%1\""

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\DefaultIcon]
""="C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe,0"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\Capabilities\FileAssociations]
".html"="ScoopLibrewolfHTM"
".htm"="ScoopLibrewolfHTM"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\Capabilities\URLAssociations]
"https"="ScoopLibrewolfHTM"
"http"="ScoopLibrewolfHTM"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\Capabilities]
"ApplicationName"="Librewolf (Scoop)"
"ApplicationIcon"="C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe,0"
"ApplicationDescription"="Librewolf"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)]
""="Librewolf (Scoop)"

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\shell\open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\shell\open\command]
@="\"C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe\" \"%1\""

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\Application]
; Name in Dialog
"ApplicationName"="Librewolf (Scoop)"
"ApplicationDescription"="Librewolf - An independent fork of Firefox, with the primary goals of privacy, security and user freedom."
"ApplicationIcon"="C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe,0"

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM]
""="Librewolf (Scoop) HTML Document"

@he3als this registry config works for me try this. (It will not use scoops persist directory, the profile is present at %appdata%/librewolf)

@he3als
Copy link
Contributor Author

he3als commented Jan 31, 2022

worked thanks

@zachvlat
Copy link

I 'm using this reg file but it doesn't work for me.

@jwmh
Copy link

jwmh commented May 14, 2023

@he3als
Can this please be re-opened?
It doesnt appear to be working currently with the latest scoop/librewolf install!
platform: Windows 20H2 (OS Build 19042.2006).
.
see also:
https://www.reddit.com/r/LibreWolf/comments/sf21qt/can_not_set_librewolf_as_default_browser/
" ...also .. try

/RegisterDefaultAgent=true

if using the exe installer in scoop. "

@he3als
Copy link
Contributor Author

he3als commented May 17, 2023

you have to change _USERNAME_

also, i would recommend winget or chocolatey for this

@jwmh
Copy link

jwmh commented May 17, 2023 via email

@basketshoe
Copy link

Windows Registry Editor Version 5.00


[HKEY_CURRENT_USER\SOFTWARE\RegisteredApplications]
"Librewolf (Scoop)"="Software\\Clients\\StartMenuInternet\\Librewolf (Scoop)\\Capabilities"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\shell]
[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\shell\open]
[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\shell\open\command]
@="\"C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe\" \"%1\""

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\DefaultIcon]
""="C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe,0"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\Capabilities\FileAssociations]
".html"="ScoopLibrewolfHTM"
".htm"="ScoopLibrewolfHTM"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\Capabilities\URLAssociations]
"https"="ScoopLibrewolfHTM"
"http"="ScoopLibrewolfHTM"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)\Capabilities]
"ApplicationName"="Librewolf (Scoop)"
"ApplicationIcon"="C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe,0"
"ApplicationDescription"="Librewolf"

[HKEY_CURRENT_USER\SOFTWARE\Clients\StartMenuInternet\Librewolf (Scoop)]
""="Librewolf (Scoop)"

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\shell\open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\shell\open\command]
@="\"C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe\" \"%1\""

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM\Application]
; Name in Dialog
"ApplicationName"="Librewolf (Scoop)"
"ApplicationDescription"="Librewolf - An independent fork of Firefox, with the primary goals of privacy, security and user freedom."
"ApplicationIcon"="C:\\Users\\_USERNAME_\\scoop\\apps\\librewolf\\current\\LibreWolf\\librewolf.exe,0"

[HKEY_CURRENT_USER\SOFTWARE\Classes\ScoopLibrewolfHTM]
""="Librewolf (Scoop) HTML Document"

@he3als this registry config works for me try this. (It will not use scoops persist directory, the profile is present at %appdata%/librewolf)

can confirm this works for mullvad-browser too with small path tweaking 🙇🏻‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants