mullvad-browser icon indicating copy to clipboard operation
mullvad-browser copied to clipboard

Allow Mullvad Browser to be set as Default Browser

Open robinkleem opened this issue 2 years ago • 31 comments

Firstly, thank you for providing an important tool in the ongoing fight for personal privacy.

Due to the current installation method, Mullvad Browser can not easily be set as the default browser for a operating system. That is to say, Mullvad should be the browser that launches when URLs are clicked in applications running on the Operating System.

While the approach required will likely be different from OS to OS, I would imagine that if a viable approach can be found for Linux, Windows and MacOS, it would help with the day to day usage of the browser.

With regards to Linux, if the app was packaged as a Flatpak it would likely be identified by the OS as a acceptable candidate for default browser. In a sense, this is similar to Issue #6

Please accept my apologies for clumsy writing as English is not my mother language.

robinkleem avatar Apr 06 '23 12:04 robinkleem

https://support.torproject.org/tbb/#tbb_tbb-32

speaking from a windows experience - I use firefox portables a lot, and TB of course. These are not installed - they are simply unpacked and the option in the UI does not work (because it points to the firefox.exe and not the wrapper or portable.exe - and you end up creating a new default profile). In order to set a portable as default, you need to hack the registry.

I don't think this is something that will ever be addressed, it's been a known issue upstream since day 1 - for example https://gitlab.torproject.org/legacy/trac/-/issues/12763

Thorin-Oakenpants avatar Apr 06 '23 22:04 Thorin-Oakenpants

I think you can run ./start-mullvad-browser.desktop --setDefaultBrowser to set Mullvad Browser as your default browser.

retiolus avatar Apr 07 '23 01:04 retiolus

Due to the current installation method, Mullvad Browser can not easily be set as the default browser for a operating system.

Which OS are you on?

On MacOS you can easily set as default browser in settings.

alltheseas avatar Apr 07 '23 03:04 alltheseas

On MacOS you can easily set as default browser in settings.

macOS is the exception here. 🙂

ruihildt avatar Apr 07 '23 06:04 ruihildt

I think you can run ./start-mullvad-browser.desktop --setDefaultBrowser to set Mullvad Browser as your default browser.

Hi. Thank you for the suggestion. I tried it and it did not work. I am running Linux (specifically Ubuntu 22.04).

robinkleem avatar Apr 08 '23 11:04 robinkleem

Due to the current installation method, Mullvad Browser can not easily be set as the default browser for a operating system.

Which OS are you on?

On MacOS you can easily set as default browser in settings.

I am currently running on Ubuntu 22.04.

robinkleem avatar Apr 08 '23 11:04 robinkleem

https://support.torproject.org/tbb/#tbb_tbb-32

speaking from a windows experience - I use firefox portables a lot, and TB of course. These are not installed - they are simply unpacked and the option in the UI does not work (because it points to the firefox.exe and not the wrapper or portable.exe - and you end up creating a new default profile). In order to set a portable as default, you need to hack the registry.

I don't think this is something that will ever be addressed, it's been a known issue upstream since day 1 - for example https://gitlab.torproject.org/legacy/trac/-/issues/12763

Thank you for the insight. I understand the comments and perspectives of the posts that seek to isolate the browser as much as possible from the primary OS. However I still think that enabling this functionality would allow for a nice convenience trade-off and a set-and-forget configuration that would allow all future links clicked somewhere in the OS or applications to launch in Mullvad Browser without any thought.

This takes me back to the consideration of packaging Mullvad Browser as a flatpak which would then allow people to self-select the small convenience vs privacy trade-off.

But then of course then there is the need to support multiple package formats which the devs would understandably want to avoid.

No clear solutions, but I still think the ability to enable Mullvad Browser as the default for the OS would be a boon for many.

robinkleem avatar Apr 08 '23 11:04 robinkleem

Hi. Thank you for the suggestion. I tried it and it did not work. I am running Linux (specifically Ubuntu 22.04).

Try this:

  1. Open a Terminal and download the latest release for your current user:

    cd ~/.local/share && wget https://mullvad.net/en/download/browser/linux64/latest -O mullvad-browser.tar.xz

  2. Extract the content of the downloaded file into a mullvad-browser folder:

    tar -xvf mullvad-browser.tar.xz mullvad-browser

  3. Delete the downloaded tar.xz file as you don't need it anymore and enter the extracted folder:

    rm mullvad-browser.tar.xz && cd mullvad-browser

  4. Launch Mullvad Browser with the --register-app flag, this should register Mullvad Browser as a desktop app for the current user:

    ./start-mullvad-browser.desktop --register-app

https://retiolus.net/posts/how-to-install-mullvad-browser-on-linux/

retiolus avatar Apr 08 '23 14:04 retiolus

4. Launch Mullvad Browser with the `--register-app` flag, this should register Mullvad Browser as a desktop app for the current user:
   `./start-mullvad-browser.desktop --register-app`

thank you, it works on arch for me

ghost avatar Apr 10 '23 04:04 ghost

I was able to --register-app and to set Mullvad browser as default browser in Linux (Pop OS) using something like this:

xdg-settings set default-web-browser start-mullvad-browser.desktop

But the prolem @robinkleem mentioned in the original report regarding not being able to open a link with existing configuration still persist. I can get mullvad browser open when clicking a link, say in the terminal, but the link is not passed to the browser.

Have anyone solved this issue?

iferca avatar Apr 11 '23 22:04 iferca

One solution is to use a URL router software such as BrokenURL as default browser, which allows you to set what browser to use on a software or even domain basis.

Ylevo avatar Apr 13 '23 15:04 Ylevo

One solution is to use a URL router software such as BrokenURL as default browser, which allows you to set what browser to use on a software or even domain basis.

Do you know any alternative to BrokenURL for Linux?

retiolus avatar Apr 13 '23 15:04 retiolus

I don't trust BrokenURL considering it's not FOSS.

Here's a Windows registry tweak for Tor, however it's from 2015 so it's likely outdated. https://tor.stackexchange.com/questions/4125/setting-tor-browser-as-default-browser-in-windows

Is anyone reg-savvy enough to modify this for Windows 10 and Mullvad Browser?

AutonomousCat avatar Jun 23 '23 06:06 AutonomousCat

Do you know any alternative to BrokenURL for Linux?

Junction, it's available as a Flatpak. However note it works best with other Flatpak-based browsers, if you use it with non-Flatpak browsers then it'll open the browser but not the webpage itself.

Victor239 avatar Jun 23 '23 06:06 Victor239

Do you know any alternative to BrokenURL for Linux?

Junction, it's available as a Flatpak. However note it works best with other Flatpak-based browsers, if you use it with non-Flatpak browsers then it'll open the browser but not the webpage itself.

Thanks a lot for the tip. MB is available on Flathub, so I installed it from there and with Junction it works fine (Pop OS 22.04).

piazzai avatar Jun 28 '23 08:06 piazzai

Anybody figured this out yet for windows? I can do it when having a second browser installed via regedit. But I don't really need a second browser.

FeyrisTan avatar Jul 23 '23 17:07 FeyrisTan

just right click html, htm, pdf if you want (etc), for each filetype

  • choose open with > choose another app > choose an app on your pc > browse for path\Mullvad Browser\Browser\mullvadbrowser.exe , click always and be done with it

Thorin-Oakenpants avatar Jul 25 '23 02:07 Thorin-Oakenpants

just right click html, htm, pdf if you want (etc), for each filetype

* choose `open with` > `choose another app` > `choose an app on your pc` > browse for `path\Mullvad Browser\Browser\mullvadbrowser.exe` , click `always` and be done with it

That doesn't fix clicking a url outside of the browser and it opening in not Mullvad Browser fyi

AutonomousCat avatar Jul 29 '23 06:07 AutonomousCat

That doesn't fix clicking a url outside of the browser

true :) I actually registered my portable FF as a program, and may have modified reg entries to point to FirefoxPortable.exe instead of firefox.exe (if you directly start firefox.exe it doesn't know where the profile is and creates a new one - you won't have this problem with mullvad)

TBH, I'm sure exactly what I did on win11. I already had installed firefoxes (nightly, dev) so I may have piggybacked on them

I am not vouching for these links, I already had a RegisterFirefoxPortable.exe from many years ago

  • yes, I used this on Win 11
  • https://www.winhelponline.com/blog/register-firefox-portable-with-default-apps/
  • https://portableapps.com/comment/249909#comment-249909
  • it's basically just a bunch of reg entries

I can do it when having a second browser installed via regedit. But I don't really need a second browser.

which means you know how to do it already. Having a secondary browser installed is no big deal IMO :) In fact it's very handy

Thorin-Oakenpants avatar Jul 30 '23 01:07 Thorin-Oakenpants

Has anyone from the team looked into this? I have the same issue. I can't seem to find a way to set this as the default browser in Linux.

steel-steven-87 avatar Jul 30 '23 12:07 steel-steven-87

I just had a thought.

I understand the primary answer has been essentially - "upstream thing", but considering Mullvad Browser isn't within the exact same scope of Tor, I think it would make sense to stray from that where it makes sense.

AutonomousCat avatar Aug 03 '23 01:08 AutonomousCat

I'm also curious if there's been any other Tor upstream things that have been overridden. Is #70 one of them?

AutonomousCat avatar Aug 03 '23 01:08 AutonomousCat

Has anyone from the team looked into this? I have the same issue. I can't seem to find a way to set this as the default browser in Linux.

@steel-steven-87 This is indeed something we're looking into.

See: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/issues/87

ruihildt avatar Aug 03 '23 05:08 ruihildt

@AutonomousCat We will do things differently from Tor Browser where that makes sense.

The next major release will contain an updated Search engines list.

ruihildt avatar Aug 03 '23 06:08 ruihildt

It is very weird that this feature is deactivated. Looking forward to seeing it back

BlackRock-99 avatar Sep 06 '23 20:09 BlackRock-99

Setting browser as default through manually editing Windows registry... Mya, it's a so-so approach. I even prepared a .bat script for this. But, that's not really the way it should have been...

Really hope that the default browser setting can be made available in the near future, all browsers have this option.

benn125 avatar Sep 20 '23 16:09 benn125

As mentioned previously, this is planned.

ruihildt avatar Oct 06 '23 12:10 ruihildt

Any ETA?

AutonomousCat avatar Nov 11 '23 23:11 AutonomousCat

Note I generated this reg file by dumping the keys created by the FireFox Portable VBS script I modified for Mullvad Browser. So you can modify the reg file above OR use this VBS script, you obviously don't need both.

Here's a a .reg file from Windows 10 that should work find on 10/11 that should work fine. Obviously you'll need to replace the file paths to reflect your setup.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser]
@="Mullvad Browser"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\Capabilities]
"ApplicationDescription"="Mullvad Browser delivers safe, private web browsing. A familiar user interface, enhanced security features including protection from online identity theft, and integrated search let you get the most out of the web."
"ApplicationIcon"="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\",0"
"ApplicationName"="Mullvad Browser"
"StartMenu"="Mullvad Browser"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\Capabilities\FileAssociations]
".pdf"="MullvadPDF2"
".avif"="MullvadHTML2"
".htm"="MullvadHTML2"
".html"="MullvadHTML2"
".shtml"="MullvadHTML2"
".svg"="MullvadHTML2"
".webp"="MullvadHTML2"
".xht"="MullvadHTML2"
".xhtml"="MullvadHTML2"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\Capabilities\URLAssociations]
"http"="MullvadHTML2"
"https"="MullvadHTML2"
"mailto"="MullvadHTML2"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\DefaultIcon]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\",0"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\shell]

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\shell\open]

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\shell\open\command]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\""

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\shell\properties]
@="Mullvad &Options"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\shell\properties\command]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\" -preferences"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\shell\safemode]
@="Mullvad &Safe Mode"

[HKEY_CURRENT_USER\Software\Clients\StartmenuInternet\Mullvad Browser\shell\safemode\command]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\" -safe-mode"

[HKEY_CURRENT_USER\Software\Classes\MullvadURL2\DefaultIcon]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\",1"

[HKEY_CURRENT_USER\Software\Classes\MullvadURL2\shell]

[HKEY_CURRENT_USER\Software\Classes\MullvadURL2\shell\open]
@="open"

[HKEY_CURRENT_USER\Software\Classes\MullvadURL2\shell\open\command]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\" -url \"%1\""

[HKEY_CURRENT_USER\Software\Classes\MullvadURL2\shell\open\ddeexec]
@=""

[HKEY_CURRENT_USER\Software\Classes\MullvadHTML2]
@="Mullvad HTML Document"
"EditFlags"=dword:00000002
"FriendlyTypeName"="Mullvad HTML Document"

[HKEY_CURRENT_USER\Software\Classes\MullvadHTML2\Application]
"ApplicationIcon"="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\",0"
"ApplicationName"="Mullvad Browser"

[HKEY_CURRENT_USER\Software\Classes\MullvadHTML2\DefaultIcon]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\",1"

[HKEY_CURRENT_USER\Software\Classes\MullvadHTML2\shell]
@="open"

[HKEY_CURRENT_USER\Software\Classes\MullvadHTML2\shell\open]

[HKEY_CURRENT_USER\Software\Classes\MullvadHTML2\shell\open\command]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\" -url \"%1\""

[HKEY_CURRENT_USER\Software\Classes\MullvadHTML2\shell\open\ddeexec]
@=""

[HKEY_CURRENT_USER\Software\Classes\MullvadURL2]
@="Mullvad URL"
"EditFlags"=dword:00000002
"FriendlyTypeName"="Mullvad URL"
"URL Protocol"=""

[HKEY_CURRENT_USER\Software\Classes\MullvadPDF2]
@="Mullvad PDF Document"
"EditFlags"=dword:00000002
"FriendlyTypeName"="Mullvad PDF Document"

[HKEY_CURRENT_USER\Software\Classes\MullvadPDF2\DefaultIcon]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\",5"

[HKEY_CURRENT_USER\Software\Classes\MullvadPDF2\shell]

[HKEY_CURRENT_USER\Software\Classes\MullvadPDF2\shell\open]
@="open"

[HKEY_CURRENT_USER\Software\Classes\MullvadPDF2\shell\open\command]
@="\"C:\\Users\\MyUser\\AppData\\Roaming\\Mullvad Browser\\Browser\\MullvadBrowser.exe\" -url \"%1\""

I take no credit for this script, it's simply the one Thorin pointed out previously which I adapted to my needs. However I did fully review script for anything unneeded and everything looked good to me. Tested it on Windows 10 with both the REGISTER and UNREGISTER functionality.

Instructions: Save code to .vbs file in root of Mullvad Browser folder then double click on the VBS. If the script is sitting in the wrong folder and can't find the Mullvad exe it will simply error out make no changes.

'Registers Mullvad Browser with Default Programs or Default Apps in Windows
'Mullvadportable.vbs - created for Firefox Portable by Ramesh Srinivasan for Winhelponline.com
'v1.0 17-July-2022 - Initial release. Tested on Mozilla FireFox 102.0.1.0.
'v1.1 23-July-2022 - Minor bug fixes.
'v1.2 27-July-2022 - Minor revision. Cleaned up the code.
'Suitable for all Windows versions, including Windows 10/11.
'Tutorial: https://www.winhelponline.com/blog/register-Firefox-portable-with-default-apps/

'v1.3 3-Dec-2023 - Minor changes in naming by end user to enable use for Mullvad Browser (Tested 1.3 fully on Windows 10)

Option Explicit
Dim sAction, sAppPath, sExecPath, sIconPath, objFile, sbaseKey, sbaseKey2, sAppDesc
Dim sClsKey, ArrKeys, regkey
Dim WshShell : Set WshShell = CreateObject("WScript.Shell")
Dim oFSO : Set oFSO = CreateObject("Scripting.FileSystemObject")

Set objFile = oFSO.GetFile(WScript.ScriptFullName)
sAppPath = oFSO.GetParentFolderName(objFile)
sExecPath = sAppPath & "\Browser\MullvadBrowser.exe"
sIconPath = sAppPath & "\Browser\MullvadBrowser.exe"
sAppDesc = "Mullvad Browser delivers safe, private web browsing. " & _
"A familiar user interface, enhanced security features including " & _
"protection from online identity theft, and integrated search let " & _
"you get the most out of the web."

'Quit if MullvadBrowser.exe is missing in the current folder!
If Not oFSO.FileExists (sExecPath) Then
   MsgBox "Please run this script from Mullvad Browser folder. The script will now quit.", _
   vbOKOnly + vbInformation, "Register Mullvad Browser with Default Apps"
   WScript.Quit
End If

If InStr(sExecPath, " ") > 0 Then
   sExecPath = """" & sExecPath & """"
   sIconPath = """" & sIconPath & """"
End If

sbaseKey = "HKCU\Software\"
sbaseKey2 = sbaseKey & "Clients\StartmenuInternet\Mullvad Browser\"
sClsKey = sbaseKey & "Classes\"

If WScript.Arguments.Count > 0 Then
   If UCase(Trim(WScript.Arguments(0))) = "-REG" Then Call RegisterMullvadBrowser
   If UCase(Trim(WScript.Arguments(0))) = "-UNREG" Then Call UnRegisterMullvadBrowser
Else
   sAction = InputBox ("Type REGISTER to add Mullvad Browser to Default Apps. " & _
   "Type UNREGISTER To remove.", "Mullvad Browser Registration", "REGISTER")
   If UCase(Trim(sAction)) = "REGISTER" Then Call RegisterMullvadBrowser
   If UCase(Trim(sAction)) = "UNREGISTER" Then Call UnRegisterMullvadBrowser
End If

Sub RegisterMullvadBrowser   
   WshShell.RegWrite sbaseKey & "RegisteredApplications\Mullvad Browser", _
   "Software\Clients\StartMenuInternet\Mullvad Browser\Capabilities", "REG_SZ"
   
   'MullvadHTML registration
   WshShell.RegWrite sClsKey & "MullvadHTML2\", "Mullvad HTML Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadHTML2\EditFlags", 2, "REG_DWORD"
   WshShell.RegWrite sClsKey & "MullvadHTML2\FriendlyTypeName", "Mullvad HTML Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadHTML2\DefaultIcon\", sIconPath & ",1", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadHTML2\shell\", "open", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadHTML2\shell\open\command\", sExecPath & _
   " -url " & """" & "%1" & """", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadHTML2\shell\open\ddeexec\", "", "REG_SZ"
   
   'MullvadPDF registration
   WshShell.RegWrite sClsKey & "MullvadPDF2\", "Mullvad PDF Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadPDF2\EditFlags", 2, "REG_DWORD"
   WshShell.RegWrite sClsKey & "MullvadPDF2\FriendlyTypeName", "Mullvad PDF Document", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadPDF2\DefaultIcon\", sIconPath & ",5", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadPDF2\shell\open\", "open", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadPDF2\shell\open\command\", sExecPath & _
   " -url " & """" & "%1" & """", "REG_SZ"
   
   'MullvadURL registration
   WshShell.RegWrite sClsKey & "MullvadURL2\", "Mullvad URL", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadURL2\EditFlags", 2, "REG_DWORD"
   WshShell.RegWrite sClsKey & "MullvadURL2\FriendlyTypeName", "Mullvad URL", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadURL2\URL Protocol", "", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadURL2\DefaultIcon\", sIconPath & ",1", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadURL2\shell\open\", "open", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadURL2\shell\open\command\", sExecPath & _
   " -url " & """" & "%1" & """", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadURL2\shell\open\ddeexec\", "", "REG_SZ"   
   
   'Default Apps Registration/Capabilities
   WshShell.RegWrite sbaseKey2, "Mullvad Browser", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\ApplicationDescription", sAppDesc, "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\ApplicationIcon", sIconPath & ",0", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\ApplicationName", "Mullvad Browser", "REG_SZ" 
   WshShell.RegWrite sbaseKey2 & "Capabilities\FileAssociations\.pdf", "MullvadPDF2", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "Capabilities\StartMenu", "Mullvad Browser", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "DefaultIcon\", sIconPath & ",0", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\open\command\", sExecPath, "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\properties\", "Mullvad &Options", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\properties\command\", sExecPath & " -preferences", "REG_SZ"
   WshShell.RegWrite sbaseKey2 & "shell\safemode\", "Mullvad &Safe Mode", "REG_SZ"   
   WshShell.RegWrite sbaseKey2 & "shell\safemode\command\", sExecPath & " -safe-mode", "REG_SZ"
   
   ArrKeys = Array ( _
   "FileAssociations\.avif", _
   "FileAssociations\.htm", _
   "FileAssociations\.html", _
   "FileAssociations\.shtml", _
   "FileAssociations\.svg", _
   "FileAssociations\.webp", _
   "FileAssociations\.xht", _
   "FileAssociations\.xhtml", _
   "URLAssociations\http", _
   "URLAssociations\https", _
   "URLAssociations\mailto" _
   )
   
   For Each regkey In ArrKeys
      WshShell.RegWrite sbaseKey2 & "Capabilities\" & regkey, "MullvadHTML2", "REG_SZ"
   Next      
   
   'Override the default app name by which the program appears in Default Apps  (*Optional*)
   '(i.e., -- "Mozilla FireFox, Portable Edition" Vs. "Firefox Portable")
   'The official Mozilla Firefox setup doesn't add this registry key.
   WshShell.RegWrite sClsKey & "MullvadHTML2\Application\ApplicationIcon", sIconPath & ",0", "REG_SZ"
   WshShell.RegWrite sClsKey & "MullvadHTML2\Application\ApplicationName", "Mullvad Browser", "REG_SZ"
   
   'Launch Default Programs or Default Apps after registering Mullvad Browser   
   WshShell.Run "control /name Microsoft.DefaultPrograms /page pageDefaultProgram"
End Sub


Sub UnRegisterMullvadBrowser
   sbaseKey = "HKCU\Software\"
   sbaseKey2 = "HKCU\Software\Clients\StartmenuInternet\Mullvad Browser"   
   
   On Error Resume Next
   WshShell.RegDelete sbaseKey & "RegisteredApplications\Mullvad Browser"
   On Error GoTo 0
   
   WshShell.Run "reg.exe delete " & sClsKey & "MullvadHTML2" & " /f", 0
   WshShell.Run "reg.exe delete " & sClsKey & "MullvadPDF2" & " /f", 0
   WshShell.Run "reg.exe delete " & sClsKey & "MullvadURL2" & " /f", 0
   WshShell.Run "reg.exe delete " & chr(34) & sbaseKey2 & chr(34) & " /f", 0
   
   'Launch Default Apps after unregistering Mullvad Browser   
   WshShell.Run "control /name Microsoft.DefaultPrograms /page pageDefaultProgram"   
End Sub

Kenny606 avatar Dec 04 '23 02:12 Kenny606

I'd like to show support for this issue. I am playing with Mullvad after having used Brave or other Chromium forks for years and I am pleasantly surprised to see that FireFox has made their browser considerably faster, more resource efficient. However, despite switching, I still have to copy+paste URLs over from other browsers when I click a link on any other application, which sort of defeats the purpose.

My biggest problems with it have been that Mullvad is too close to the Tor browser, which is portable and is designed for people whose personal safety may depend on the browser not exposing them or allowing them to be tracked. However, on Mullvad, it has been difficult to turn off some anti-fingerprinting settings which are required to actually use it effectively (such as U2F keys).

Mullvad would benefit from having an installer with two standards of security: "I want a private browser" that is a standard installation ready for work out the box, and "My life depends on it" which is more strict (and honestly you should just be using the Tor browser anyways).

Thanks!

jaw-sh avatar Feb 16 '24 15:02 jaw-sh