First commit

This commit is contained in:
Andros Fenollosa 2020-12-09 14:38:12 +01:00
commit 8675608712
3 changed files with 37 additions and 0 deletions

11
README.md Normal file
View File

@ -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
```

BIN
firefox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

26
linux-install-firefox Normal file
View File

@ -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!"