Bug 466455 - "Open In File Manager" doesn't work
Summary: "Open In File Manager" doesn't work
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Image (show other bugs)
Version: 7.9.0
Platform: Snap Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-26 08:04 UTC by Andrei
Modified: 2024-07-12 08:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei 2023-02-26 08:04:25 UTC
STEPS TO REPRODUCE
1. Open image in Preview.
2. Right click mouse and choose "Open In File Manager" by left click.

OBSERVED RESULT
Nothing happened.

EXPECTED RESULT
Opening in Files or Thunar or Dolphin or error message how to fix this error. May be it would be choosing the File manager to open directory with this file.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.10
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Comment 1 caulier.gilles 2023-02-26 09:38:32 UTC
It work perfectly here under Kubuntu 22.04:

https://i.imgur.com/0T36aB8.mp4

Gilles Caulier
Comment 2 Andrei 2023-02-26 10:07:34 UTC
(In reply to caulier.gilles from comment #1)
> It work perfectly here under Kubuntu 22.04:
> 
> https://i.imgur.com/0T36aB8.mp4
> 
> Gilles Caulier

Ok. But what's the problem for my Ubuntu? digiKam doesn't show the problem.
Comment 3 caulier.gilles 2023-02-26 11:38:17 UTC
digiKam delegate to the desktop to way to open the right file manager. sound like the configuration in your desktop is broken. Look the code: it delegate the way to open file manager in DBUS command which is generic for all desktop. Sound like your Ubuntu desktop do not have the right configuration in DBUS server or something like that.

https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/threadimageio/engine/dfileoperations.cpp#L262

Gilles Caulier
Comment 4 caulier.gilles 2023-05-03 08:26:33 UTC
@Andrei

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 5 caulier.gilles 2023-10-11 05:31:42 UTC
Andrei,

What's about this file using current 8.2.0 AppImage Linux bundle ? It's
reproducible ?

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 6 Andrei 2023-10-11 19:29:09 UTC
(In reply to caulier.gilles from comment #5)
> Andrei,
> 
> What's about this file using current 8.2.0 AppImage Linux bundle ? It's
> reproducible ?
> 
> https://files.kde.org/digikam/
> 
> Thanks in advance
> 
> Gilles Caulier

Yes. It's work fine with it. It shows the folder with file but doen't select the file. If it's possible it will be nice (or may be it should - I don't know).

And BTW. I checked in the fresh Ubuntu - I have the same problem with installed version.
Comment 7 caulier.gilles 2023-10-12 04:45:29 UTC
The installed version is based on flatpak or snap package which have rights access limitation to the system...

CC: Scarlet for info...

Gilles Caulier
Comment 8 KaiB 2024-07-12 07:49:49 UTC
With Appimage: digiKam-8.4.0-20240710T162150-Qt6-x86-64.appimage 
on Fedora 40 (WS edition, x86_64) & Gnome
get from the console the following error messages:

xdg-mime: no method available for querying MIME type of '/home/digikam8/Kuvat/2022/2022-10-31'
xdg-mime: mimetype argument missing
Try 'xdg-mime --help' for more information.
/usr/bin/xdg-open: rivi 1045: x-www-browser: komentoa ei löydy
restorecon: /tmp/.mount_digiKarJTAh4/usr/lib/libselinux.so.1: version `LIBSELINUX_3.4' not found (required by restorecon)
XPCOMGlueLoad error for file /usr/lib64/firefox/libmozgtk.so:
/tmp/.mount_digiKarJTAh4/usr/lib/libmount.so.1: version `MOUNT_2_40' not found (required by /lib64/libgio-2.0.so.0)
Couldn't load XPCOM.
/usr/bin/xdg-open: rivi 1045: iceweasel: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: seamonkey: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: mozilla: komentoa ei löydy
epiphany: /tmp/.mount_digiKarJTAh4/usr/lib/libmount.so.1: version `MOUNT_2_40' not found (required by /lib64/libgio-2.0.so.0)
epiphany: /tmp/.mount_digiKarJTAh4/usr/lib/libssl.so.3: version `OPENSSL_3.2.0' not found (required by /lib64/libcurl.so.4)
/usr/bin/xdg-open: rivi 1045: konqueror: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: chromium: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: chromium-browser: komentoa ei löydy
/usr/bin/google-chrome: /tmp/.mount_digiKarJTAh4/usr/lib/libmount.so.1: version `MOUNT_2_40' not found (required by /lib64/libgio-2.0.so.0)
/usr/bin/xdg-open: rivi 1045: www-browser: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: links2: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: elinks: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: links: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: lynx: komentoa ei löydy
/usr/bin/xdg-open: rivi 1045: w3m: komentoa ei löydy
xdg-open: no method available for opening 'file:///home/digikam8/Kuvat/2022/2022-10-31'

komentoa ei löydy == the command is not found

With the Appimage version 8.3.0 works.
Comment 9 caulier.gilles 2024-07-12 07:55:53 UTC
Try with the legacy Qt5 appimage compiled with Ubuntu 20.04 (instead 22.04 for Qt6 version):

https://files.kde.org/digikam/legacy/
Comment 10 KaiB 2024-07-12 08:16:08 UTC
Thanks! Works.
Comment 11 KaiB 2024-07-12 08:16:27 UTC
Thanks! Works.