Skip to content

Instantly share code, notes, and snippets.

@mahammad
Last active June 21, 2024 22:26
Show Gist options
  • Save mahammad/e54e4be8938edf4d6c15 to your computer and use it in GitHub Desktop.
Save mahammad/e54e4be8938edf4d6c15 to your computer and use it in GitHub Desktop.
How To install Firefox Developer Edition and create desktop icon for Ubuntu 14.04 LTS

chose other install way

  1. Open Terminal Ctrl+Alt+T Download Firefox Developer Edition tar file

    wget https://download.mozilla.org/?product=firefox-aurora-latest-ssl&os=linux64&lang=en-US

  2. Copy tar file to opt sudo cp -rp firefox-35.0a2.en-US.linux-x86_64.tar.bz2

  3. Open opt folder (cd /opt/) and untar file sudo tar xjf firefox-35.0a2.en-US.linux-x86_64.tar.bz2

  4. Delete tar file sudo rm -rf firefox-35.0a2.en-US.linux-x86_64.tar.bz2

  5. Now create new icon for Firefox Developer Edition browser. sudo chown -R $USER /opt/firefox

  6. Open nano ~/.bashrc

  7. Go to the end of file and paste this line: export PATH=/opt/firefox/firefox:$PATH

  8. The last thing we need to do is to create launcher for Unity. sudo nano /usr/share/applications/FirefoxDeveloperEdition.desktop

  9. Paste the lines below into it:

    [Desktop Entry]
    Version=1.0
    Name=Firefox Developer Edition
    StartupWMClass="firefox-aurora", "Firefox Developer Edition"
    GenericName=Web Browser
    Exec=/opt/firefox/firefox
    Terminal=false
    Icon=/opt/firefox/browser/icons/mozicon128.png
    Type=Application
    Categories=Network;WebBrowser;Favorites;
    StartupNotify=true
    Keywords=web;browser;internet;
    Actions=new-window;new-private-window;
    StartupWMClass=Firefox Developer Edition
    MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
    X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito
  10. Copy icon to Desktop cp -rp /usr/share/applications/FirefoxDeveloperEdition.desktop /home/$USER/Desktop

  11. Do run enable chmod +x FirefoxDeveloperEdition.desktop

  12. Go Desktop and click Firefox Developer Edition 😄

@JegadeeshVontlin
Copy link

JegadeeshVontlin commented May 27, 2018

Everything is Okay! I can't see the icon , it still shows as setting icon. My theme is numix and flat-remix icons

UPDATE

Right click Properties and browse icon select 32 version or 64 version depends on your icon size in launcher :)

@vaggelis2018
Copy link

vaggelis2018 commented Jun 6, 2018

@mahammad
Hello, wget returns 404 error has anything changed?.

@diogosimao
Copy link

ls -la /usr/bin/firefox-dev/browser/chrome/icons/default/

@jonabasque
Copy link

It's great, I've installed it, but this binary overwrites the Firefox installation data. Mozilla does not understand that the normal thing is to want to use the two browsers at the same time in your system? or am I missing something?

I would love to use both at the same time, do you know about this?

@seeni-dev
Copy link

Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png

use this, in case icon is not available.

@metaquanta
Copy link

You may want to keep the installation in your home directory. Firefox expects to be installed user-locally and updates will not work correctly when installed in /opt or /usr/local.

FreeDesktop.org compliant systems will also look for .desktop files in ~/.local/share/applications to support user-local installations.

@metaquanta
Copy link

This method addresses the problem with updates by chowning the /opt/firefox directory to the installing user. That would be okay if not for the global .desktop file in /usr/share/applications. Any other user will also see this Firefox on their desktop but it will be broken. To correctly install an application user-locally one should put the .desktop file in ~/.local/share/applications.

@a-i-r7
Copy link

a-i-r7 commented Jul 19, 2019

Thanks a lot

@suga0828
Copy link

Its work. Just make sure that:

  • The version that you download for steps 2, 3 and 4.
  • The name of your FirefoxDeveloperEdition.desktop, in my case was firefox-developer.desktop.
  • The path of the icon, in my case was Icon=/opt/firefox/browser/chrome/icons/default/default128.png.

@MostHated
Copy link

MostHated commented Apr 10, 2021

My icons don't stack on the favorite launcher icon in my bar anymore. It did for months, but started randomly unstacking after X amount of time. I would restart Firefox, they would stack again for a while (few hours) but then break off into their own icon stack. Now, they just don't stack at all on the launcher icon, ever. It is extremely annoying.

You can see the left is the launcher icon, but when clicked, they just open in their own stack off to the right. Every other application stacks on its pinned launcher icon.

@aapeliv
Copy link

aapeliv commented Sep 20, 2021

My icons don't stack on the favorite launcher icon in my bar anymore.

Seems to be fixed if you add the following:

StartupWMClass=Firefox Developer Edition

From here: https://askubuntu.com/a/548005

Copy link

ghost commented Oct 25, 2021

@mahammad
Copy link
Author

mahammad commented Oct 25, 2021

@Cpatrick08 I checked, it's working. Maybe you should try curl, or manual download

@lamualfa
Copy link

In the latest version of Firefox Dev (Firefox Aurora), you need to add the StartupWMClass attribute to prevent Firefox instances opened in different groups of .desktop files.

StartupWMClass="firefox-aurora", "Firefox Developer Edition"

@mahammad
Copy link
Author

@lamualfa Thank you

@MostHated
Copy link

MostHated commented Feb 10, 2022

Wish I had came back to look at this sooner, I had been dealing with it ever since my post. Now it is working as expected. Finally! Thanks. 👍

I guess I spoke too soon. Even with the above-mentioned aurora addition to the WMClass, it is back to stacking on its own, not the favorite icon. I just don't get it. It worked for a day or so, then just decided... "an".

I did just notice this, though.

zsh > xprop | grep WM_CLASS
WM_CLASS(STRING) = "Navigator", "FirefoxDev"

Then double checking with AutoKeys window class viewer, it came back with Class: 'Navigator.FirefoxDev'

@dennisreimann
Copy link

For me setting StartupWMClass=firefox-aurora made the difference. It didn't work for me when having multiple values, as in the example above @lamualfa.

@Tzolkin
Copy link

Tzolkin commented Mar 15, 2022

Everything is fine except for the Alt Tab Switcher
Distro: elementaryOS 6.1
AltTab Switcher: Catts
Scaling factor: HiDPI(2x)
fde_icon_missing

@dimolf345
Copy link

@Tzolkin I have the same problem on Elementary 6.1 I'm becoming crazy 🤣

@ctudorache87
Copy link

This worked for me until a couple of days ago.

StartupWMClass="firefox-aurora", "Firefox Developer Edition"

I'm now running version 99.0b7 and it seems to work with

StartupWMClass="firefox", "Firefox Developer Edition"

@oraimagini
Copy link

Everything is fine except for the Alt Tab Switcher Distro: elementaryOS 6.1 AltTab Switcher: Catts Scaling factor: HiDPI(2x) fde_icon_missing

Amigo, prueba esto, recuerda cambiar la ruta (path) En mi caso esta en /opt/firefox-dev
Importante: StartupWMClass=firefox-aurora

[Desktop Entry]
Version=1.0
Name=Firefox Developer Edition
StartupWMClass=firefox-aurora
GenericName=Web Browser
Exec=/opt/firefox-dev/firefox
Terminal=false
Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
Type=Application
Categories=Network;WebBrowser;Favorites;
StartupNotify=true
Keywords=web;browser;internet;
Actions=new-window;new-private-window;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-schem>
X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito

@mahammad
Copy link
Author

@oraimagini Maybe check file permission

@chrysos349
Copy link

Whenever I launched Firefox Developer Edition in Wayland session of Gnome, there were two icons in my dash. It took me some time to find the answer.

It turns out Firefox Developer Edition has a different wmclass value depending on the session type.
In x11 wmclass is firefoxdeveloperedition, in Wayland it is firefox-aurora. The StartupWMClass of the .desktop has to be edited accordingly.

P.S. To find out wmclass value, you can use xprop WM_CLASS in x11, and looking glass command in wayland (press alt+f2, then type lg, press enter, and go to windows tab).

@arch-user-france1
Copy link

This guide is terrible.

@mauriciabad
Copy link

Version of the shortcut with the icons and quick actions fixed as of 2022.

⚠️ In the options Icon and Exec (3 times), replace firefox-dev with the name of the folder you gave when creating the program folder (step 5, you should have firefox if followed this tutorial)

/usr/share/applications/FirefoxDeveloperEdition.desktop

[Desktop Entry]
Version=1.0
NoDisplay=true
Name=Firefox Developer Edition
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=/opt/firefox-dev/firefox # <-- check if this path is ok in your machine
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png # <-- check if this path is ok in your machine
Categories=GNOME;GTK;Network;WebBrowser;
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;video/webm;application/x-xpinstall;
StartupNotify=true
StartupWMClass=firefox-aurora
Actions=new-window;new-private-window;

[Desktop Action new-window]
Name=Open a New Window
Exec=/opt/firefox-dev/firefox -new-window # <-- check if this path is ok in your machine

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=/opt/firefox-dev/firefox -private-window # <-- check if this path is ok in your machine

@Leeo97one
Copy link

@mauriciabad Why NoDisplay=true?

@matinwd
Copy link

matinwd commented Jan 17, 2023

Can somebody tell me why someone says you should create "/usr/share/applications" and some other people say "~/.local/share/applications"
What is the difference between those?

@roadev
Copy link

roadev commented Feb 27, 2023

Thanks for this!

@jooonathann
Copy link

This works for me in ubuntu
my firefox dev location is in /opt/firefoxDeveloperEdition, the desktop file is in /usr/share/applications/firefoxDeveloperEdition.desktop


[Desktop Entry]
Version=1.0
StartupWMClass=firefox-aurora
Name=Firefox Developer Edition
Name[ar]=متصفح الويب فَيَرفُكْس
Name[ast]=Restolador web Firefox
Name[bn]=ফায়ারফক্স ওয়েব ব্রাউজার
Name[ca]=Navegador web Firefox
Name[cs]=Firefox Webový prohlížeč
Name[da]=Firefox - internetbrowser
Name[el]=Περιηγητής Firefox
Name[es]=Navegador web Firefox
Name[et]=Firefoxi veebibrauser
Name[fa]=مرورگر اینترنتی Firefox
Name[fi]=Firefox-selain
Name[fr]=Navigateur Web Firefox
Name[gl]=Navegador web Firefox
Name[he]=דפדפן האינטרנט Firefox
Name[hr]=Firefox web preglednik
Name[hu]=Firefox webböngésző
Name[it]=Firefox Browser Web
Name[ja]=Firefox ウェブ・ブラウザ
Name[ko]=Firefox 웹 브라우저
Name[ku]=Geroka torê Firefox
Name[lt]=Firefox interneto naršyklė
Name[nb]=Firefox Nettleser
Name[nl]=Firefox webbrowser
Name[nn]=Firefox Nettlesar
Name[no]=Firefox Nettleser
Name[pl]=Przeglądarka WWW Firefox
Name[pt]=Firefox Navegador Web
Name[pt_BR]=Navegador Web Firefox
Name[ro]=Firefox – Navigator Internet
Name[ru]=Веб-браузер Firefox
Name[sk]=Firefox - internetový prehliadač
Name[sl]=Firefox spletni brskalnik
Name[sv]=Firefox webbläsare
Name[tr]=Firefox Web Tarayıcısı
Name[ug]=Firefox توركۆرگۈ
Name[uk]=Веб-браузер Firefox
Name[vi]=Trình duyệt web Firefox
Name[zh_CN]=Firefox 网络浏览器
Name[zh_TW]=Firefox 網路瀏覽器
Comment=Browse the World Wide Web
Comment[ar]=تصفح الشبكة العنكبوتية العالمية
Comment[ast]=Restola pela Rede
Comment[bn]=ইন্টারনেট ব্রাউজ করুন
Comment[ca]=Navegueu per la web
Comment[cs]=Prohlížení stránek World Wide Webu
Comment[da]=Surf på internettet
Comment[de]=Im Internet surfen
Comment[el]=Μπορείτε να περιηγηθείτε στο διαδίκτυο (Web)
Comment[es]=Navegue por la web
Comment[et]=Lehitse veebi
Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید
Comment[fi]=Selaa Internetin WWW-sivuja
Comment[fr]=Naviguer sur le Web
Comment[gl]=Navegar pola rede
Comment[he]=גלישה ברחבי האינטרנט
Comment[hr]=Pretražite web
Comment[hu]=A világháló böngészése
Comment[it]=Esplora il web
Comment[ja]=ウェブを閲覧します
Comment[ko]=웹을 돌아 다닙니다
Comment[ku]=Li torê bigere
Comment[lt]=Naršykite internete
Comment[nb]=Surf på nettet
Comment[nl]=Verken het internet
Comment[nn]=Surf på nettet
Comment[no]=Surf på nettet
Comment[pl]=Przeglądanie stron WWW
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[ro]=Navigați pe Internet
Comment[ru]=Доступ в Интернет
Comment[sk]=Prehliadanie internetu
Comment[sl]=Brskajte po spletu
Comment[sv]=Surfa på webben
Comment[tr]=İnternet'te Gezinin
Comment[ug]=دۇنيادىكى توربەتلەرنى كۆرگىلى بولىدۇ
Comment[uk]=Перегляд сторінок Інтернету
Comment[vi]=Để duyệt các trang web
Comment[zh_CN]=浏览互联网
Comment[zh_TW]=瀏覽網際網路
GenericName=Web Browser
GenericName[ar]=متصفح ويب
GenericName[ast]=Restolador Web
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[da]=Webbrowser
GenericName[el]=Περιηγητής διαδικτύου
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[it]=Browser web
GenericName[ja]=ウェブ・ブラウザ
GenericName[ko]=웹 브라우저
GenericName[ku]=Geroka torê
GenericName[lt]=Interneto naršyklė
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Веб-браузер
GenericName[vi]=Trình duyệt Web
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[ar]=انترنت;إنترنت;متصفح;ويب;وب
Keywords[ast]=Internet;WWW;Restolador;Web;Esplorador
Keywords[ca]=Internet;WWW;Navegador;Web;Explorador;Explorer
Keywords[cs]=Internet;WWW;Prohlížeč;Web;Explorer
Keywords[da]=Internet;Internettet;WWW;Browser;Browse;Web;Surf;Nettet
Keywords[de]=Internet;WWW;Browser;Web;Explorer;Webseite;Site;surfen;online;browsen
Keywords[el]=Internet;WWW;Browser;Web;Explorer;Διαδίκτυο;Περιηγητής;Firefox;Φιρεφοχ;Ιντερνετ
Keywords[es]=Explorador;Internet;WWW
Keywords[fi]=Internet;WWW;Browser;Web;Explorer;selain;Internet-selain;internetselain;verkkoselain;netti;surffaa
Keywords[fr]=Internet;WWW;Browser;Web;Explorer;Fureteur;Surfer;Navigateur
Keywords[he]=דפדפן;אינטרנט;רשת;אתרים;אתר;פיירפוקס;מוזילה;
Keywords[hr]=Internet;WWW;preglednik;Web
Keywords[hu]=Internet;WWW;Böngésző;Web;Háló;Net;Explorer
Keywords[it]=Internet;WWW;Browser;Web;Navigatore
Keywords[is]=Internet;WWW;Vafri;Vefur;Netvafri;Flakk
Keywords[ja]=Internet;WWW;Web;インターネット;ブラウザ;ウェブ;エクスプローラ
Keywords[nb]=Internett;WWW;Nettleser;Explorer;Web;Browser;Nettside
Keywords[nl]=Internet;WWW;Browser;Web;Explorer;Verkenner;Website;Surfen;Online
Keywords[pt]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[pt_BR]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[ru]=Internet;WWW;Browser;Web;Explorer;интернет;браузер;веб;файрфокс;огнелис
Keywords[sk]=Internet;WWW;Prehliadač;Web;Explorer
Keywords[sl]=Internet;WWW;Browser;Web;Explorer;Brskalnik;Splet
Keywords[tr]=İnternet;WWW;Tarayıcı;Web;Gezgin;Web sitesi;Site;sörf;çevrimiçi;tara
Keywords[uk]=Internet;WWW;Browser;Web;Explorer;Інтернет;мережа;переглядач;оглядач;браузер;веб;файрфокс;вогнелис;перегляд
Keywords[vi]=Internet;WWW;Browser;Web;Explorer;Trình duyệt;Trang web
Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;Firefox;ff;互联网;网站;
Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐
Exec=/opt/firefoxDeveloperEdition/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/opt/firefoxDeveloperEdition/browser/chrome/icons/default/default128.png
Categories=GNOME;GTK;Network;WebBrowser;
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
Actions=NewWindow;NewPrivateWindow;

[Desktop Action NewWindow]
Name=Open a New Window
Name[ar]=افتح نافذة جديدة
Name[ast]=Abrir una ventana nueva
Name[bn]=Abrir una ventana nueva
Name[ca]=Obre una finestra nova
Name[cs]=Otevřít nové okno
Name[da]=Åbn et nyt vindue
Name[de]=Ein neues Fenster öffnen
Name[el]=Άνοιγμα νέου παραθύρου
Name[es]=Abrir una ventana nueva
Name[fi]=Avaa uusi ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre
Name[gl]=Abrir unha nova xanela
Name[he]=פתיחת חלון חדש
Name[hr]=Otvori novi prozor
Name[hu]=Új ablak nyitása
Name[it]=Apri una nuova finestra
Name[ja]=新しいウィンドウを開く
Name[ko]=새 창 열기
Name[ku]=Paceyeke nû veke
Name[lt]=Atverti naują langą
Name[nb]=Åpne et nytt vindu
Name[nl]=Nieuw venster openen
Name[pt]=Abrir nova janela
Name[pt_BR]=Abrir nova janela
Name[ro]=Deschide o fereastră nouă
Name[ru]=Новое окно
Name[sk]=Otvoriť nové okno
Name[sl]=Odpri novo okno
Name[sv]=Öppna ett nytt fönster
Name[tr]=Yeni pencere aç
Name[ug]=يېڭى كۆزنەك ئېچىش
Name[uk]=Відкрити нове вікно
Name[vi]=Mở cửa sổ mới
Name[zh_CN]=新建窗口
Name[zh_TW]=開啟新視窗
Exec=/opt/firefoxDeveloperEdition/firefox -new-window

[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
Name[ar]=افتح نافذة جديدة للتصفح الخاص
Name[ca]=Obre una finestra nova en mode d'incògnit
Name[de]=Ein neues privates Fenster öffnen
Name[es]=Abrir una ventana privada nueva
Name[fi]=Avaa uusi yksityinen ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre de navigation privée
Name[he]=פתיחת חלון גלישה פרטית חדש
Name[hu]=Új privát ablak nyitása
Name[it]=Apri una nuova finestra anonima
Name[nb]=Åpne et nytt privat vindu
Name[ru]=Новое приватное окно
Name[sl]=Odpri novo okno zasebnega brskanja
Name[tr]=Yeni bir pencere aç
Name[uk]=Відкрити нове вікно у потайливому режимі
Name[zh_TW]=開啟新隱私瀏覽視窗
Exec=/opt/firefoxDeveloperEdition/firefox -private-window


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment