0

I have downloaded Firefox Aurora (nightly) from the official website, and use tried to set it as the default browser, but when go to Default Applications, it does not show it as an option for a web browser.

[Desktop Entry]
Encoding=UTF-8
Version=109.0beta
Type=Application
Name=Firefox Aurora
GenericName=Web Browser
Icon=/opt/Firefox-Nightly/unnamed.png
Path=/opt/Firefox-Nightly
Exec=/opt/Firefox-Nightly/firefox
StartupNotify=false
StartupWMClass="Navigator", "firefox-aurora"
OnlyShowIn=Unity;GNOME
Categories=GNOME;GTK;WebBrowser;
X-UnityGenerated=true

1 Answers1

0

First of all to install the Firefox Aurora(nightly) you can download the .tar.bz2 file from https://www.mozilla.org/en-US/firefox/channel/desktop/

-> Open terminal and navigate to the folder where you downloaded the file.

-> Now run the command tar xjf firefox-112.0a1.en-US.linux-x86_64.tar.bz2 to extract the files. (the version provided is the one which is currently available in the website)

-> Move the extracted folder(firefox) to /opt using

sudo mv firefox /opt/

-> Create a symbolic link using

sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox

This should solve the problem of Firefox not showing up on default applications.

If that doesn't solve the problem or your installation is different you can try creating a .desktop file for Firefox Aurora(nightly).

Open a new text file and add the following lines

    [Desktop Entry]
    Name=Firefox Aurora
    Comment=Web Browser
    GenericName=Web Browser
    X-GNOME-FullName=Firefox Aurora Web Browser
    Exec=/path/to/firefox/firefox %u
    Terminal=false
    X-MultipleArgs=false
    Type=Application
    Icon=/path/to/firefox/browser/chrome/icons/default/default128.png
    Categories=Network;WebBrowser;
    MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
    StartupNotify=true
    Actions=NewWindow;NewPrivateWindow;
[Desktop Action NewWindow]
Name=Open a New Window
Exec=firefox -new-window

[Desktop Action NewPrivateWindow]
Name=Open a New Private Window
Exec=firefox -private-window

Save it as firefoxaurora.desktop.

Run chmod +x firefoxaurora.desktop in terminal from where the .desktop file is present to make it executable.

Now run sudo desktop-file-install firefoxaurora.desktop

Again that should fix the issue. Hope it helps!

  • I got an error warning: value "Web Browser" for key "Comment" in group "Desktop Entry" looks the same as that of key "GenericName". I changed the text in Comment to something else, and that seems to have worked, and it is appearing in my default application menu – Arjun Singh Kwatra Feb 26 '23 at 18:16