Monthly Archives: July 2021

Set up the latest version of Mozilla Firefox on your Linux distribution

Set up the latest version of Mozilla Firefox on your Linux distribution

Firefox 90.0 was released on 13th July 2021. It was instantly, at least on the same day, available on flathub.org. Therefore, Linux users running flatpak could enjoy the latest release at once.

However, Firefox 90.0 won't be available on regular Linux distribution software repositories at that speed. Even with Linux distros known to be bleeding-edge it usually takes a few days if not weeks before the latest Firefox is tested, packaged and made available in official repos.

Mozilla provides a compressed tarball of the Firefox binaries and libs. These should be sufficient to run Firefox smoothly on almost any Linux distribution. Certainly, it a little of tinkering will be required if you would like to have it running on your system like as if it was installed via the software manager, creating the application shortcuts etc.

How do we do that?

First of all, let's grab the latest Firefox tarball from Mozilla's website. That being done, we decompress and extract the tarball.

tar xjvf firefox-90.0.tar.bz2

The firefox folder is extracted. Now, move the folder to the /opt directory. Keeping it in /opt allows to have a clean setup of third-party software in one location.

Next, we create the application shortcut file named firefox.desktop in the /usr/share/applications directory with the below content.

[Desktop Entry]
Version=1.0
Name=Mozilla Firefox
Exec=/opt/firefox/firefox %U
StartupNotify=true
Terminal=false
Icon=firefox
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/ftp;x-scheme-handler/http;x-scheme-handler/https;
Actions=new-window;new-private-window;

Notice that the "icon" name is "firefox" and we have not provided a location for where this icon may be. The system will look for icons in its system folders with the name provided in the .desktop file. The locations that are searched are:

  • A 32x32 px XPM file in /usr/share/pixmaps
  • Different sizes of PNG files in /usr/share/icons/hicolor/48x48/apps
  • An SVG file in /usr/share/icons/hicolor/scalable/apps

The icons in different PNG sizes are packaged in the Firefox tarball and they are available in the /opt/firefox/browser/chrome/icons/default directory. Each icon can be renamed to firefox.png and copied to its appropriate « size » folder in /usr/share/icons/hicolor/<size>/apps.

That's it, you now have the latest version of Firefox on your Linux distribution with the required shortcuts.

Insert unicode characters in KDE using Ctrl + Shift + U

Insert unicode characters in KDE using Ctrl + Shift + U

Linux users familiar with the GNOME desktop must know this shortcut to insert special characters using code points from the Unicode Standard chart of diacritical marks, i.e as most commonly called, accents.

Insert unicode characters in KDE using Ctrl + Shift + U
Special characters are very handy when typing in French

I have seen a lot of posts where users are asking how to get a similar shortcut in KDE or other desktop environments.

The unicode shortcut, Ctrl + Shift + U, to insert special characters isn't a built-in feature in GNOME. It is a feature available from IBus, an input framework for Linux. Installing it along KDE or any other desktop environment will provide the feature. Use your distro's package manager to search for ibus and install the appropriate packages.

Disable “single-click” to open folder in KDE Dolphin

Disable "single-click" to open folder in KDE Dolphin

I expected disabling the single-click option in order to open files/folders in Dolphin to be straightforward and under Configure Dolphin, but alas that was not the case. It was not after several Google search that I got a hint that this is a system feature in KDE Plasma and not something specific to Dolphin.

How do we change it?

Type General Behaviour in Krunner and the option should be under Click behaviour.

Disable "single-click" to open folder in KDE Dolphin

I prefer to double-click in order to open files/folders.

I thought of putting this here in case someone else is looking for this. 😉