[okular] [Bug 517816] "Open containing folder" fails with Caja file manager due to file URI vs folder URI mismatch

Sune Vuorela bugzilla_noreply at kde.org
Thu Mar 19 08:44:07 GMT 2026


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

Sune Vuorela <kde at pusling.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kde at pusling.com

--- Comment #1 from Sune Vuorela <kde at pusling.com> ---
Okular sends the list of 1 file to hilight over dbus to the file manager, as
specified in
https://www.freedesktop.org/wiki/Specifications/file-manager-interface/ - which
Caja seems to support in
https://github.com/mate-desktop/caja/blob/master/src/caja-freedesktop-dbus.c#L241

If caja reports an error, okular instead launches the file manager with the
argument of the directory of the first file: KIO::OpenUrlJob *urlJob = new
KIO::OpenUrlJob(urls.at(0).adjusted(QUrl::RemoveFilename),
QStringLiteral("inode/directory"));

I don't know which parts fails in Caja, but Okular does as it should.

All of this happens in KIO in
https://invent.kde.org/frameworks/kio/-/blob/master/src/gui/openfilemanagerwindowjob.cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list