Skip to content

Commit

Permalink
Add Mullvad Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed May 9, 2024
1 parent cea566f commit b8bc72b
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/Mullvad/description
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Mullvad Browser is security-minded browser meant for use with a VPN.
Default settings will block trackers, browser fingerprinting, ads, insecure HTTP connections, and more.

Mullvad Browser is a fork of the Tor browser, and includes uBlock Origin and the Mullvad extensions preinstalled.

To run: Menu -> Internet -> Mullvad Browser
To run in a terminal: ~/mullvad-browser/Browser/start-mullvad-browser
Binary file added apps/Mullvad/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/Mullvad/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions apps/Mullvad/install-32
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

version=13.0.9

#if ~/mullvad-browser_en-US folder exists, prepare to import its user-data
if [ -d ~/mullvad-browser_en-US/Browser/MullvadBrowser/Data/Browser ];then
mv -f ~/mullvad-browser_en-US ~/mullvad-browser.temp
fi

#if ~/mullvad-browser folder exists, prepare to import its user-data
if [ -d ~/mullvad-browser/Browser/MullvadBrowser/Data/Browser ];then
mv -f ~/mullvad-browser ~/mullvad-browser.temp
fi

rm -f ~/mullvad.tar.xz
wget -O ~/mullvad.tar.xz https://sourceforge.net/projects/tor-browser-ports/files/mullvad-${version}/mullvad-browser-linux-armhf-${version}.tar.xz/download || error "Failed to download!"
tar -xf ~/mullvad.tar.xz || error "Failed to extract!"
rm -f ~/mullvad.tar.xz

#if ~/mullvad-browser.temp folder exists, import its user-data
if [ -d ~/mullvad-browser.temp ];then
rm -rf ~/mullvad-browser/Browser/MullvadBrowser/Data/Browser
mv -f ~/mullvad-browser.temp/Browser/MullvadBrowser/Data/Browser ~/mullvad-browser/Browser/MullvadBrowser/Data && rm -rf ~/mullvad-browser.temp
fi

#copy icon for wayfire
mkdir -p ~/.local/share/icons
cp -f $HOME/mullvad-browser/Browser/browser/chrome/icons/default/default128.png ~/.local/share/icons/mullvad-browser.png

echo "[Desktop Entry]
Type=Application
Name=Mullvad Browser
GenericName=Web Browser
Comment=Mullvad Browser is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=$HOME/mullvad-browser/Browser/start-mullvad-browser --class 'mullvad-browser' --name 'mullvad-browser'
X-MullvadBrowser-ExecShell=./Browser/start-mullvad-browser --detach
Icon=mullvad-browser
StartupWMClass=mullvad-browser" > ~/.local/share/applications/mullvad.desktop
40 changes: 40 additions & 0 deletions apps/Mullvad/install-64
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

version=13.0.9

#if ~/mullvad-browser_en-US folder exists, prepare to import its user-data
if [ -d ~/mullvad-browser_en-US/Browser/MullvadBrowser/Data/Browser ];then
mv -f ~/mullvad-browser_en-US ~/mullvad-browser.temp
fi

#if ~/mullvad-browser folder exists, prepare to import its user-data
if [ -d ~/mullvad-browser/Browser/MullvadBrowser/Data/Browser ];then
mv -f ~/mullvad-browser ~/mullvad-browser.temp
fi

rm -f ~/mullvad.tar.xz
wget -O ~/mullvad.tar.xz https://sourceforge.net/projects/tor-browser-ports/files/mullvad-${version}/mullvad-browser-linux-arm64-${version}.tar.xz/download || error "Failed to download!"
tar -xf ~/mullvad.tar.xz || error "Failed to extract!"
rm -f ~/mullvad.tar.xz

#if ~/mullvad-browser.temp folder exists, import its user-data
if [ -d ~/mullvad-browser.temp ];then
rm -rf ~/mullvad-browser/Browser/MullvadBrowser/Data/Browser
mv -f ~/mullvad-browser.temp/Browser/MullvadBrowser/Data/Browser ~/mullvad-browser/Browser/MullvadBrowser/Data && rm -rf ~/mullvad-browser.temp
fi

#copy icon for wayfire
mkdir -p ~/.local/share/icons
cp -f $HOME/mullvad-browser/Browser/browser/chrome/icons/default/default128.png ~/.local/share/icons/mullvad-browser.png

echo "[Desktop Entry]
Type=Application
Name=Mullvad Browser
GenericName=Web Browser
Comment=Mullvad Browser is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=$HOME/mullvad-browser/Browser/start-mullvad-browser --class 'mullvad-browser' --name 'mullvad-browser'
X-MullvadBrowser-ExecShell=./Browser/start-mullvad-browser --detach
Icon=mullvad-browser
StartupWMClass=mullvad-browser" > ~/.local/share/applications/mullvad.desktop

27 changes: 27 additions & 0 deletions apps/Mullvad/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

#remove the menu launcher
rm -f ~/.local/share/applications/tor.desktop

#before removing the tor-browser_en-US folder, move the browser configuration like bookmarks, etc
if [ -d ~/tor-browser ];then
mkdir -p ~/tor-browser.temp/Browser/TorBrowser/Data
mv -n ~/tor-browser/Browser/TorBrowser/Data/Browser ~/tor-browser.temp/Browser/TorBrowser/Data
fi

#remove all browser internals (except for user-data which we moved already)
rm -rf ~/tor-browser

#remove icon
rm -f ~/.local/share/icons/tor-browser.png

#move back the temporary folder containing user-data
if [ -d ~/tor-browser.temp ];then
mv ~/tor-browser.temp ~/tor-browser

#let the user know where configuration is
echo "Tor Browser has been uninstalled, but user-data like settings and bookmarks remain intact.
To remove these files, run this command:
rm -rf ~/tor-browser"

fi
1 change: 1 addition & 0 deletions apps/Mullvad/website
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://sourceforge.net/projects/tor-browser-ports/files/
1 change: 1 addition & 0 deletions etc/categories
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Min|Internet/Browsers
Mission Planner|Engineering
Monero GUI|Tools
More RAM|Tools
Mullvad|Internet/Browsers
Mu|Programming
MuseScore2|hidden
MuseScore|Multimedia
Expand Down

0 comments on commit b8bc72b

Please sign in to comment.