This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dolphin 2.0 doesn't show custom folder icons

Tags: None
(comma "," separated)
User avatar
greatperson
Registered Member
Posts
75
Karma
0
OS
It was very useful feature, and it's strange that it could disappear so silently: I haven't googled any solutions for this problem. So:
- All folders are shown with standard icons (with any icon theme)
- But I can see the custom icon in a folder's Properties dialog

What could it mean? What to do?

Last edited by greatperson on Sat Feb 18, 2012 11:54 am, edited 1 time in total.
User avatar
google01103
Manager
Posts
6668
Karma
25
can you edit your subject to "Dolphin 2.0 doesn't show custom folder icons"

is this your bug https://bugs.kde.org/show_bug.cgi?id=288824

did this happen after an update to 4.8?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
greatperson
Registered Member
Posts
75
Karma
0
OS
OK, I renamed the topic.

google01103 wrote:did this happen after an update to 4.8?

I don't remember exactly when I noticed it first, but I think you're right.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I believe this functionality has been restored in KDE Trunk (to be 4.9). Not sure if it will be included as a bug fix in 4.8.1 however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
waldelf
Registered Member
Posts
333
Karma
0
OS
this should definitely be included in 4.8.1

on my kubuntu 12.04 beta1 machine it shows custom folder icons on local folders

but it does't show custom folder icons for my NFS shares..

it does show custom folder icons on NFS folders if they contain at least 1 picture (png or jpg, gif)

i worked around this bug by planting a small 2x2 px gif (totally transparent) into the folders.. (it does not work with hidden files "blank.gif" does work ".blank.gif" does not!


Kubuntu 12.04 x64 | KDE SC 4.8
Nvidia 8800 GTS | Core2Duo E6600 | 4 GB RAM
freininghaus
Moderator
Posts
224
Karma
1
OS
This is

https://bugs.kde.org/show_bug.cgi?id=288824

The reason why custom folder icons are not shown for, e.g., NFS is a change in kdelibs in KDE 4.7.4, which was actually a bug fix for

https://bugs.kde.org/show_bug.cgi?id=178678

More details about this are in the bug report.
User avatar
greatperson
Registered Member
Posts
75
Karma
0
OS
waldelf wrote:this should definitely be included in 4.8.1

I've just updated to 4.8.1, but nothing changed. :-\

I see the problem not on network shares but on a normal local drive. The filesystem is NTFS. At the same time, right now I tried to create a new folder in my /home (filesystem is ext4) and to set a custom icon for it — and it worked!

Does this behavour depends on filesystem? I think it's very strange. :-(
User avatar
waldelf
Registered Member
Posts
333
Karma
0
OS
so ntfs is treated like nfs (the filesystem on my NAS is ext3) ? hmmm..


Kubuntu 12.04 x64 | KDE SC 4.8
Nvidia 8800 GTS | Core2Duo E6600 | 4 GB RAM
User avatar
google01103
Manager
Posts
6668
Karma
25
waldelf wrote:so ntfs is treated like nfs (the filesystem on my NAS is ext3) ? hmmm..

for me custom folders do not appear on NTFS partitions


OpenSuse Leap 42.1 x64, Plasma 5.x

freininghaus
Moderator
Posts
224
Karma
1
OS
google01103 wrote:
waldelf wrote:so ntfs is treated like nfs (the filesystem on my NAS is ext3) ? hmmm..

for me custom folders do not appear on NTFS partitions


The NTFS issue is being tracked at

https://bugs.kde.org/show_bug.cgi?id=291251

I'm not 100% sure, but it could be due to the same change in kdelibs like the NFS issue (note that the NTFS bug was also first reported for KDE 4.7.4). I can't say more about that at the moment because I'm not familiar with that code in kdelibs.
User avatar
greatperson
Registered Member
Posts
75
Karma
0
OS
Yes, you're right, the problem is that KDE detects NTFS as a «slow» filesystem. I solved this problem for me with recompiling kdelibs from sources with a little change.

This is a piece of code from kdelibs/kdecore/io/kfilesystemtype_p.cpp:
Code: Select all
KFileSystemType::Type determineFileSystemTypeImpl(const QByteArray& path)
{
    struct statfs buf;
    if (statfs(path.constData(), &buf) != 0) {
        //kDebug() << path << errno << strerror(errno);
        return KFileSystemType::Unknown;
    }
    switch (buf.f_type) {
    case NFS_SUPER_MAGIC:
    case AUTOFS_SUPER_MAGIC:
    case AUTOFSNG_SUPER_MAGIC:
    case FUSE_SUPER_MAGIC: // TODO could be anything. Need to use statfs() to find out more.
        return KFileSystemType::Nfs;
    case SMB_SUPER_MAGIC:
        return KFileSystemType::Smb;
    case MSDOS_SUPER_MAGIC:
        return KFileSystemType::Fat;
    default:
        return KFileSystemType::Other;
    }
}


Somebody has leaved a comment near «case FUSE_SUPER_MAGIC». The problem is really in this line. I just commented it out and recompiled kdelibs. Now I can see my custom folder icons again! ;D

Of course I'm not sure that I didn't break something useful with it, but currently I haven't noticed any new bugs. I hope that this advice will be useful for somebody until subj will be fixed in a more elegant way.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This indicates that the problem is because NTFS is implemented as a FUSE driver, rather than a native driver. In most cases, FUSE is used to implement remote file systems such as sshfs, webdav, etc.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
greatperson
Registered Member
Posts
75
Karma
0
OS
Is there a way to use NTFS «directly» (without FUSE)?

(Unfortuntely, I'm not such an advanced user so I even don't know exactly what FUSE is. :-\)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
As far as I am aware, the only reliable NTFS implementation is ntfs-3g, which is implemented as a FUSE driver. FUSE drivers run in user space instead of directly in the kernel itself.

A bug in a FUSE driver will not cause the system to crash, while a bug in a kernel driver will. However, kernel drivers have more direct hardware access, and higher priority in terms of execution time, so are faster.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
waldelf
Registered Member
Posts
333
Karma
0
OS
i have the very same problem with my samba shares.. dolphin just ignores the .desktop entries .. is there no simple way to make dolphin read those .desktop files and show the custom folder icon ?? is this also related to the problem discussed in the posts above?


Kubuntu 12.04 x64 | KDE SC 4.8
Nvidia 8800 GTS | Core2Duo E6600 | 4 GB RAM


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], Yahoo [Bot]