mirror of
https://github.com/tanrax/linux-install-firefox.git
synced 2024-11-09 22:55:41 +01:00
First commit
This commit is contained in:
commit
8675608712
11
README.md
Normal file
11
README.md
Normal 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
BIN
firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
26
linux-install-firefox
Normal file
26
linux-install-firefox
Normal 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!"
|
Loading…
Reference in New Issue
Block a user