Product name and directory customization
Mullvad Browser for macOS will not have a portable mode.
So, we need to customize the profile directory not to clash with any other Firefox installation.
Mozilla has a pair of possibilities:
- explicitly specify
Profile=
inapplication.ini
(not directly, but throughMOZ_APP_PROFILE
, which you should set withmk_add_options
in themozconfig
) - setting the application vendor and name (
MOZ_APP_VENDOR
andMOZ_APP_BASENAME
respectively, the former inbrowser/confvars.sh
, the latter withexport
in themozconfig
)
The second approach allows to customize the Windows .exe
properties, but it has several side effects:
- it changes the binary name (e.g., for
MOZ_APP_BASENAME="TorBrowser"
I gottorbrowser.exe
) - it changes the output directory (e.g.,
obj-whatever/dist/torbrowser
)
If we want to follow this approach, we should start with it from the beginning, or updating will be a nightmare (especially the shortcuts).