Last active
July 27, 2021 09:06
-
-
Save ambersariya/08b17bc0b6718259bf1d72d224d01927 to your computer and use it in GitHub Desktop.
Install Latest Firefox Developer Edition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
FIREFOX_HOME_LOCAL_BIN=$HOME/.local/bin/ | |
echo "Installing latest firefox developer edition in ${FIREFOX_HOME_LOCAL_BIN}" | |
mkdir -p $FIREFOX_HOME_LOCAL_BIN | |
wget "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" -O firefox.tar.bz2 | |
echo "Downloaded latest firefox developer edition" | |
tar -xvf firefox.tar.bz2 -C $FIREFOX_HOME_LOCAL_BIN | |
echo "Untared in ${FIREFOX_HOME_LOCAL_BIN}" | |
sudo rm /usr/local/bin/firefox-developer | |
sudo ln -sf $FIREFOX_HOME_LOCAL_BIN/firefox/firefox /usr/local/bin/firefox-developer | |
echo "Recreated symlink ${FIREFOX_HOME_LOCAL_BIN}" | |
cat > $HOME/.local/share/applications/firefox-developer.desktop << EOF | |
[Desktop Entry] | |
Version=1.0 | |
Name=Firefox Developer | |
Comment=Firefox Browser Developer Edition, The browser made for developers | |
GenericName=Web Browser | |
Keywords=Internet;WWW;Browser;Web;Explorer | |
Type=Application | |
Exec=/usr/local/bin/firefox-developer %u | |
Terminal=false | |
X-MultipleArgs=false | |
Icon=$FIREFOX_HOME_LOCAL_BIN/firefox/browser/chrome/icons/default/default128.png | |
Categories=GNOME;GTK;Network;WebBrowser; | |
Actions=ProfileManager;new-window;new-private-window; | |
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall; | |
StartupNotify=true | |
StartupWMClass=Developer | |
[Desktop Action ProfileManager] | |
Name=Profile Manager | |
Exec=/usr/local/bin/firefox-developer -P | |
[Desktop Action new-window] | |
Name=New window | |
Exec=/usr/local/bin/firefox-developer -new-window | |
[Desktop Action new-private-window] | |
Name=New private window | |
Exec=/usr/local/bin/firefox-developer -private-window | |
EOF | |
echo "Finished created desktop shortcut here: $HOME/.local/share/applications/firefox-developer.desktop" | |
echo "Cleanup tar file firefox.tar.bz2" | |
rm firefox.tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment