https://bugs.kde.org/show_bug.cgi?id=479268
Bug ID: 479268 Summary: Provide helpful info on why exiftool is not recognised Classification: Applications Product: digikam Version: 8.1.0 Platform: NixOS OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: Metadata-ExifTool Assignee: digikam-bugs-n...@kde.org Reporter: thibault.lema...@protonmail.com Target Milestone: --- Created attachment 164600 --> https://bugs.kde.org/attachment.cgi?id=164600&action=edit File picker detecting exiftool, but tooltip reading "binary not found." SUMMARY digiKam gives very little information as to why `exiftool` is not found, and that information was wrong in my case as exiftool **was** found, it just did not work correctly. STEPS TO REPRODUCE 1. Change one of your locale settings to something that's not installed on your system (e.g. in KDE System Settings > Region & Language > Currency) 2. Log out and back in 3. In digiKam, go to Settings > configure digiKam... > Metadata > ExifTool and witness the binary not being found. or alternatively, just hack exiftool to output garbage (it's just a perl script after all) OBSERVED RESULT Hovering the 🚫 symbol next to `exiftool` shows a tooltip with the text "binary not found." EXPECTED RESULT At least show "binary not recognised" instead, when the binary exists but emits unexpected output. And better yet: Show the attempted command and its resulting output to the user. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 6.1.69-xanmod1 (64-bit) KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.112.0 Qt Version: 5.15.11 ADDITIONAL INFORMATION I have `exiftool` installed, yet digikam does not detect it. I opened the file picker dialogue, found the location of the binary (which was correctly detected/filtered by the file picker) and selected it. The file picker closed, as if satisfied, but I was left with a blank ExifTool tab, and the unhelpful tooltip "binary not found." I say "unhelpful" for 2 reasons: 1. It is not obvious to me that you have to hover over the 🚫 icon to get information on what went wrong 2. I actually found the issue, and it wasn't that the binary was not found, but rather that it did not output what digiKam was expecting: ```sh ❯ exiftool -ver perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "", LC_ALL = (unset), LC_MONETARY = "fr_FR.UTF-8", LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_GB.UTF-8"). 12.70 ``` exiftool is actually working perfectly fine, but just outputting garbage that (I guess) digiKam cannot parse. Thankfully once I had identified the issue, fixing it was pretty easy. But the logical path from "digiKam cannot not find `exiftool`" to "you have an issue with your locale settings" was really not obvious and I just spent the better part of day investigating that. I would have probably given up immediately hadn't I had another machine on which digiKam recognised `exiftool` out of the box. -- You are receiving this mail because: You are watching all bug changes.