linux-install-firefox/linux-install-firefox
2021-04-27 10:49:29 +02:00

26 lines
958 B
Bash

#!/bin/bash
# START
set -e
## UNINSTALL
# Remove binaries
sudo rm -rf /opt/firefox/ /usr/bin/firefox
# DOWNLOAD
curl -L -o firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/88.0/linux-x86_64/es-ES/firefox-88.0.tar.bz2
# EXTRACT
tar -xf firefox.tar.bz2
rm -rf firefox.tar.bz2
# INSTALL
sudo mv firefox /opt
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
# DESKTOP INTEGRATION
echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Firefox\nComment=Firefox\nExec=/opt/firefox/firefox %u\nTerminal=false\nIcon=/opt/firefox/browser/chrome/icons/default/default128.png\nStartupWMClass=Firefox\nType=Application\nCategories=Network;WebBrowser;\nMimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;x-scheme-handler/http;x-scheme-handler/https;\nStartupNotify=true\n" | sudo tee -a /usr/share/applications/firefox.desktop
# NOTIFY
echo "Installed!"