Skip to content

Commit

Permalink
Tor: fix window icon on wayfire
Browse files Browse the repository at this point in the history
Before this it was using the calculator icon lol.
  • Loading branch information
Botspot committed Feb 25, 2024
1 parent 9d7d23d commit 6119ae6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
10 changes: 7 additions & 3 deletions apps/Tor/install-32
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ if [ -d ~/tor-browser.temp ];then
mv -f ~/tor-browser.temp/Browser/TorBrowser/Data/Browser ~/tor-browser/Browser/TorBrowser/Data && rm -rf ~/tor-browser.temp
fi

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

echo "[Desktop Entry]
Type=Application
Name=Tor Browser
GenericName=Web Browser
Comment=Tor Browser is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=$HOME/tor-browser/Browser/start-tor-browser
Exec=$HOME/tor-browser/Browser/start-tor-browser --class 'tor-browser' --name 'tor-browser'
X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach
Icon=$(dirname "$0")/icon-64.png
StartupWMClass=Tor Browser" > ~/.local/share/applications/tor.desktop
Icon=tor-browser
StartupWMClass=tor-browser" > ~/.local/share/applications/tor.desktop
10 changes: 7 additions & 3 deletions apps/Tor/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ if [ -d ~/tor-browser.temp ];then
mv -f ~/tor-browser.temp/Browser/TorBrowser/Data/Browser ~/tor-browser/Browser/TorBrowser/Data && rm -rf ~/tor-browser.temp
fi

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

echo "[Desktop Entry]
Type=Application
Name=Tor Browser
GenericName=Web Browser
Comment=Tor Browser is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=$HOME/tor-browser/Browser/start-tor-browser
Exec=$HOME/tor-browser/Browser/start-tor-browser --class 'tor-browser' --name 'tor-browser'
X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach
Icon=$(dirname "$0")/icon-64.png
StartupWMClass=Tor Browser" > ~/.local/share/applications/tor.desktop
Icon=tor-browser
StartupWMClass=tor-browser" > ~/.local/share/applications/tor.desktop
3 changes: 3 additions & 0 deletions apps/Tor/uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ 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
Expand Down

0 comments on commit 6119ae6

Please sign in to comment.