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

Chris Holland <zrenf...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zrenf...@gmail.com

--- Comment #3 from Chris Holland <zrenf...@gmail.com> ---
I can reproduce in Manjaro with Plasma 5.14.4, Frameworks 5.52, Qt 5.11.2. Note
I'm using the *Breath* icons, which I assume inherits the Breeze icons.

*
https://github.com/KDE/plasma-desktop/blame/master/applets/taskmanager/package/contents/ui/ContextMenu.qml#L101
*
https://github.com/KDE/plasma-desktop/blame/master/applets/taskmanager/plugin/backend.cpp#L286

Here's the KFileItem::iconName() code path:
* https://github.com/KDE/kio/blame/master/src/core/kfileitem.cpp#L893
* https://github.com/KDE/kio/blame/master/src/core/kfileitem.cpp#L1492


-----
If I add a few `qDebug()` statements, it seems all the "Recent Doc" icons are
"application-octet-stream".

        qDebug() << "url:" << url;
        qDebug() << "   scheme:" << url.scheme();
        qDebug() << "   isLocal:" << url.isLocalFile();
        qDebug() << "   isDir:" << fileItem.isDir();
        qDebug() << "   icon:" << fileItem.iconName();

url: QUrl("/home/chris/Pictures/Screenshots")
   scheme: ""
   isLocal: false
   isDir: false
   icon: "application-octet-stream"

I tried setting the scheme to "file" when it's empty. Which fixed
`url.isLocalFile()` but did not fix `KFileItem::isDir()`.

        if (url.scheme() == QStringLiteral("")) {
            url.setScheme("file");
        }

url: QUrl("file:///home/chris/Pictures/Screenshots")
   scheme: "file"
   isLocal: true
   isDir: false
   icon: "application-octet-stream"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to