linux-install-firefox/linux-install-firefox

26 lines
958 B
Plaintext
Raw Normal View History

2020-12-09 14:38:12 +01:00
#!/bin/bash
# START
set -e
## UNINSTALL
# Remove binaries
2021-04-27 10:49:29 +02:00
sudo rm -rf /opt/firefox/ /usr/bin/firefox
2020-12-09 14:38:12 +01:00
# DOWNLOAD
2021-04-27 10:49:29 +02:00
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
2020-12-09 14:38:12 +01:00
# 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
2020-12-09 22:57:07 +01:00
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
2020-12-09 14:38:12 +01:00
# NOTIFY
echo "Installed!"