The HTML file icon has been replaced to blank

Screenshot_20211102_222634

The icon for HTML files has been replaced to blank, even if I changed the icon to this:

it still displays in Dolphin as blank

Update: I returned to the parent-folder and went back to this folder, it displays the right icon now.

Probably a cache issue? :slightly_smiling_face:

I think is a little bug as “IF I DO NOT CHANGE THAT IT WILL ALWAYS USE THE WRONG BLANK ICON”

One of the methods to reload a data is to restart the app or reboot PC.
Firestar, did you already tried that?

Yes, I found this after hundreds times of rebooting my PC as this is not the first day I use Manjaro on this computer.

How to find that window, which located on second snap in the initial post?

I use Chinese system, it maybe like:

Alt+return (property)

File type options

here:

Hm, I even unable to find it:


Your profile contains Desktop Environment: KDE
My sys info (kinfocenter about-distro):

Operating System: Manjaro Linux
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.15.0-1-MANJARO (64-bit)
Graphics Platform: X11

May be you are on a wayland user session type? How to check a user session type (Wayland / X11) you are using on Gnome, KDE
What if to try to switch the session type to or from X11 and to try to setup it there?

image

you need to click this

Never realized that it is a clickable area :smile:
Ok, I changed my icon.

Now

what you did to see a blank icon? Dolphin window re-open / PC reboot / timeout / else? After which event the icon returns to blank again?

  1. Open a Dolphin window (folder) with a .html file in it

  2. It did not returns, it just did not change immediately

1 Like

Try this:
In the

$ cat $HOME/.local/share/mime/packages/text-html.xml
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="text/html">
        <comment>HTML document</comment>
        <icon name="YOUR-TYPE"/>
        <glob-deleteall/>
        <glob pattern="*.htm"/>
        <glob pattern="*.html"/>
    </mime-type>
</mime-info>

set the name attr of the icon tag. Example:
<icon name="application-pdf"/>
or
<icon name="application-json"/>
then

update-mime-database $HOME/.local/share/mime/

Refresh Dolphin instances (F5).

In my case I see how icon changes after every name value change and further update-mime-database command run.

Default value is
<icon name="text-html"/>

PS
Note, that icon on the desktop will remain the same until next plasmashell restart.
If you have that files on your desktop, you can simply open desktop location in Dolphin and check icon change in Dolphin window.

EDIT
Is not working still?
Try

$ rm ~/.cache/icon-cache.kcache
$ sudo pacman -S gtk-update-icon-cache shared-mime-info

re-login into user session.

1 Like
ls $HOME/.local/share/mime/packages/  
application-x-extension-html.xml  user-extension-xhtml.xml  x-wine-extension-dll.xml  x-wine-extension-its.xml
user-extension-html.xml           user-extension-xht.xml    x-wine-extension-htc.xml  x-wine-extension-jfif.xml
user-extension-htm.xml            video-mpeg.xml            x-wine-extension-inf.xml  x-wine-extension-msp.xml
user-extension-shtml.xml          x-wine-extension-cpl.xml  x-wine-extension-ini.xml

I do not have this file, is that the problem?

If I would know… But I did not create it manually. I think it was since OS copy installation.

$ ls -A1 $HOME/.local/share/mime/packages/
application-pkcs12.xml
application-vnd.ms-word.xml
application-vnd.sun.xml.base.xml
application-x-pkcs12.xml
application-x-pkcs7-certificates.xml
application-x-x509-ca-cert.xml
text-html.xml
text-plain.xml
video-mpeg.xml
x-wine-extension-cpl.xml
x-wine-extension-dll.xml
x-wine-extension-htc.xml
x-wine-extension-inf.xml
x-wine-extension-ini.xml
x-wine-extension-its.xml
x-wine-extension-jfif.xml
x-wine-extension-msp.xml
$

probably yes, but I not sure may be that’s only one part of whole system icon assignation.

Operating System: Manjaro Linux
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.15.0-2-MANJARO (64-bit)
Graphics Platform: X11