install firefox developer edition ubuntu code example

Example 1: install firefox ubuntu

sudo apt-get install firefox

Example 2: install firefox developer edition de alongside standard normal firefox in ubuntu

# download firefox archive from Mozilla Firefox Developer webpage: https://www.mozilla.org/en-US/firefox/developer/
# Extract it with file-roller
# rename firefox to firefox_dev
# move to /opt/
sudo cp -R firefox_dev/ /opt/
# create Desktop file:
nano ~/.local/share/applications/firefox_dev.desktop
# and add these lines:

[Desktop Entry]
Name=Firefox Developer 
GenericName=Firefox Developer Edition
Exec=/opt/firefox_dev/firefox %u
Terminal=false
Icon=/opt/firefox_dev/browser/chrome/icons/default/default128.png
Type=Application
Categories=Application;Network;X-Developer;
Comment=Firefox Developer Edition Web Browser.
StartupWMClass=Firefox Developer Edition

Example 3: add firefox dev to gnome lancher

Name=Firefox Developer Edition
GenericName=Web Browser
Exec=/home/egdoc/.local/bin/firefox-dev %u
Icon=/home/egdoc/.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/egdoc/.local/bin/firefox-dev %u

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=/home/egdoc/.local/bin/firefox-dev --private-window %u

Tags:

Misc Example