Solution to problem with Firefox icon in KDE

The situation:

When I installed Firefox from the Linux Mint repositories using KDE on Debian I had the problem that the Firefox icon was not showing up, it was showing only a generic icon, whereas it was in LXDE. I solved it by searching and testing things on Google, but after a Firefox update it happened again.

I did not find anyone who had the same problem specifically so I decided to write these lines. The purpose of this post is to help those who have had the same problem, and also some things can be inferred about how icons work in KDE that can be useful for other problems.

The solution I found is not definitive and you will probably have the same problem again after the next Firefox update. So I invite anyone who wants to help to give me a hand to improve the post and make it more useful.

The solution:

The first thing I tried to do was get the Firefox icons, I just used Dolphin's search function and found them. There are several sizes, I kept the largest.
In my case they were in /usr/share/icons/nuoveXT2/128irán128/apps/firefox.png.

firefox

I leave them here ad referendum that is possible for licensing issues.

Afterwards, the desktop shortcuts are located in the / usr / share / applications folder. We are specifically interested in firefox.desktop. So in terminal:

sudo nano /usr/share/applications/firefox.desktop

The file opens, we navigate to the bottom where we will find the parameter Icon = which we edit so that it remains

Icon = / usr / share / icons / nuoveXT2 / 128 × 128 / apps / firefox.png

We keep Ctrl + o and we left Ctrl + x

What did we learn:

The icons are stored in / usr / share / icons

The desktop access files in / usr / share / applications

Missing:

As I said, this solution is not definitive, but on the other hand it is a way to understand a bit of how the accesses of the KDE desktop and panels work. If I had the same problem again I could fix it pretty quickly.

I saw that there is another post about Firefox installation in which you configure the desktop access manually, I would like to know what happens with this after updates.

+


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Christopher castro said

    I leave it like that and the icon is always updated correctly

    [Desktop Entry]
    Version=1.0
    Name=Firefox Web Browser
    Name[es]=Navegador web Firefox
    Comment=Browse the World Wide Web
    Comment[es]=Navegue por la web
    GenericName=Web Browser
    GenericName[es]=Navegador web
    Keywords=Internet;WWW;Browser;Web;Explorer
    Keywords[es]=Explorador;Internet;WWW
    Exec=firefox %u
    Terminal=false
    X-MultipleArgs=false
    Type=Application
    Icon=firefox
    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[es]=Abrir una ventana nueva
    Exec=firefox -new-window
    OnlyShowIn=Unity;

    [Desktop Action NewPrivateWindow]
    Name=Open a New Private Window
    Name[es]=Abrir una ventana privada nueva
    Exec=firefox -private-window
    OnlyShowIn=Unity;

    1.    Facundo said

      It is a problem that I had in Debian specifically. Sorry for the few explanations. I am new to GNU / Linux and it is my first post here.

      1.    truko22 said

        ^ ___ ^

  2.   eliotime3000 said

    With Iceweasel, zero problems.