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.
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.
+
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;
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.
^ ___ ^
With Iceweasel, zero problems.