commit 8675608712ddada33e144848c2fa1725fef1ae8e Author: Andros Fenollosa Date: Wed Dec 9 14:38:12 2020 +0100 First commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..c9a2a7f --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Firefox install for Linux + +![Firefox](firefox.png) + +Bash script to install the latest version of `Firefox` on Linux with desktop integration from Mozilla repository. + +## Run + +``` shell +curl -s -L linux-install-firefox https://raw.githubusercontent.com/tanrax/linux-install-firefox/main/linux-install-firefox | bash +``` diff --git a/firefox.png b/firefox.png new file mode 100644 index 0000000..6ca067c Binary files /dev/null and b/firefox.png differ diff --git a/linux-install-firefox b/linux-install-firefox new file mode 100644 index 0000000..c5b8424 --- /dev/null +++ b/linux-install-firefox @@ -0,0 +1,26 @@ +#!/bin/bash + +# START +set -e + +## UNINSTALL +# Remove binaries +rm -rf /opt/firefox/ /usr/bin/firefox + +# DOWNLOAD +curl -L -o firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-standard-latest-ssl\&os\=linux64\&lang\=en-US + +# 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 +# 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" > /usr/share/applications/firefox.desktop + +# NOTIFY +echo "Installed!"