Skip to content

Instantly share code, notes, and snippets.

@prateekrajgautam
Last active January 27, 2024 08:06
Show Gist options
  • Save prateekrajgautam/d680cb0be914498149f04c78da49983d to your computer and use it in GitHub Desktop.
Save prateekrajgautam/d680cb0be914498149f04c78da49983d to your computer and use it in GitHub Desktop.
Firefox - Dev - Installer - Linux

Install Firefox Dev Installer on Linux

#!/bin/bash
echo "Installing Firefox Dev"
curl --location "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US"  | tar --extract --verbose --preserve-permissions --bzip2

mkdir -p ~/.local/opt
mv firefox ~/.local/opt

echo $PATH
#PATH=${PATH}:"${HOME}/.local/bin"
echo "Creating symbolic links"
ln -s ~/.local/opt/firefox/firefox ~/.local/bin/firefox-dev
echo "[Desktop Entry]
Name=Firefox Developer Edition
GenericName=Web Browser
Exec=$HOME/.local/bin/firefox-dev %u
Icon=$HOME/.local/opt/firefox/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
Keywords=web;browser;internet;
Actions=new-window;new-private-window;
StartupWMClass=Firefox Developer Edition

[Desktop Action new-window]
Name=Open a New Window
Exec=$HOME/.local/bin/firefox-dev %u

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=~home/.local/bin/firefox-dev --private-window" > Firefox-Dev.desktop

chmod +x ./Firefox-Dev.desktop

cp ./Firefox-Dev.desktop $HOME/Desktop/Firefox-Dev.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment