mikeroyal / digikam-snap

A snap for digiKam, an advanced digital photo management application for KDE. It works on Ubuntu, Fedora, Debian, and other major Linux distributions.
MIT License
3 stars 0 forks source link

Cannot add Exiftool using Snap version. #6

Open Baa14453 opened 2 years ago

Baa14453 commented 2 years ago

Under Settings > Metadata > Exiftool you can set the path to the exiftool binary.

image

The snap can't see /bin where Exiftool is installed but I've copied a binary into the Snap folder under /home/baa/snap/digikam/48. Digikam can see this in the file selection dialogue: image

But if I click Open nothing changes, Digikam still can't use the file: image

I've checked the permissions on the file are also fine: image

I haven't tested it, but the mailing list claims the App Package from Digikam's website works fine so I think something about the Snap is preventing it from working, there's no debug information in the terminal though I don't know if I can turn it on somehow to diagnose

andrewlorien commented 2 years ago

I have reproduced this on v7.6.0 and my previous version. On startup, with export QT_LOGGING_RULES="digikam*=true", i get this output as the default image is loaded. But the exiftool tab under metadata is empty. Exactly the same as Baa14453, the settings cannot find exiftool (even though it exists in -rwxr-xr-x 1 root root 289K Jun 10 2021 /snap/digikam/52/usr/bin/exiftool*). When I add my own binary to my home folder I can select it but the settings still shows exiftool missing and the exiftool tab is empty, as Baa reported (see the log dump below).

digikam.metaengine: Path to ExifTool: "/home/myself/bin/exiftool-debug//exiftool" digikam.metaengine: ExifToolProcess::start(): create new ExifTool instance: "/home/myself/bin/exiftool-debug//exiftool" ("-stay_open", "true", "-@", "-", "-common_args", "-charset", "filename=UTF8", "-charset", "iptc=UTF8") digikam.metaengine: ExifTool process started digikam.metaengine: ExifTool "Load Metadata" "-json -G:0:1:2:4:6 -l /home/myself/IMagES/CKP50_Jon36/f0017280.jpg" digikam.metaengine: Loading metadata with "Exiv2" backend from "/home/myself/IMagES/CKP50_Jon36/f0017280.jpg" digikam.general: Metadata loading with Exiv2 took 386 ms ( true ) digikam.general: "Standard Exif Tags" decoding took 2 ms ( false ) digikam.general: "MakerNote Exif Tags" decoding took 1 ms ( false ) digikam.general: "IPTC Records" decoding took 0 ms ( true ) digikam.general: "XMP Schema" decoding took 0 ms ( false ) digikam.metaengine: ExifTool process finished 2 QProcess::NormalExit digikam.metaengine: ExifTool process for action "Load Metadata" finished with code: 2 and status QProcess::NormalExit digikam.general: One job is done digikam.general: Cancel Main Thread

alandefreitas commented 2 years ago

Any news on this?

🤞