Update linux-install-firefox

This commit is contained in:
Andros Fenollosa 2021-04-27 10:49:29 +02:00 committed by GitHub
parent e7969dc122
commit f6033556f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,10 +5,10 @@ set -e
## UNINSTALL ## UNINSTALL
# Remove binaries # Remove binaries
rm -rf /opt/firefox/ /usr/bin/firefox sudo rm -rf /opt/firefox/ /usr/bin/firefox
# DOWNLOAD # DOWNLOAD
curl -L -o firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-standard-latest-ssl\&os\=linux64\&lang\=en-US 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 # EXTRACT
tar -xf firefox.tar.bz2 tar -xf firefox.tar.bz2
@ -19,7 +19,6 @@ sudo mv firefox /opt
sudo ln -s /opt/firefox/firefox /usr/bin/firefox sudo ln -s /opt/firefox/firefox /usr/bin/firefox
# DESKTOP INTEGRATION # DESKTOP INTEGRATION
# Gnome Shell
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 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 # NOTIFY