Skip to content

Instantly share code, notes, and snippets.

@questionlp
Created December 27, 2023 03:28
Show Gist options
  • Save questionlp/fa9f7b87c14e88bd25beda17d2931743 to your computer and use it in GitHub Desktop.
Save questionlp/fa9f7b87c14e88bd25beda17d2931743 to your computer and use it in GitHub Desktop.
Debian 12, Firefox Stable and KDE Wayland.md

Many of the steps listed in this gist is based on the Debian Wiki page for Firefox but adds some hacks to make it more seemless when used with KDE Plasma / Wayland.

Installing the Latest Version of Firefox on Debian 12

Download the latest version of Firefox at: https://www.mozilla.org/en-US/firefox/all/#product-desktop-release

Create /opt and extract the tarball under /opt.

Adding Icon for Firefox

Create a new file named firefox-stable.desktop under /usr/share/applications with the following:

[Desktop Entry]
Name=Firefox Stable
Comment=Web Browser
Exec=/opt/firefox/firefox %u
Terminal=false
Type=Application
StartupWMClass=firefox
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;ap
plication/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Actions=Private;

[Desktop Action Private]
Exec=/opt/firefox/firefox --private-window %u
Name=Open in private mode

Use Latest Firefox as Default DebianAlternatives Browser

Run the following command:

sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 200 && sudo update-alternatives --set x-www-browser /opt/firefox/firefox

Create Firefox Symlink for Command-Line Use

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

Set Application-Specific Settings for Firefox

With a Firefox window option, press ALT+F3, select More Actions, click Configure Application-Specific Settings.

Next, click Add Property..., select Desktop file name, set the action to Force, and set the value to firefox-stable.

Verify that Firefox is Using Wayland

Browse to about:support in Firefox and search for "Window Protocol". wayland should be listed.

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