Bug 494518 - QR code detection not shown with automatically copy to clipboard enabled - the latter seems to overrule the notification/information
Summary: QR code detection not shown with automatically copy to clipboard enabled - th...
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.08.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-11 10:00 UTC by freaky
Modified: 2025-03-21 17:23 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 freaky 2024-10-11 10:00:33 UTC
Hi,

a while ago I automatically got the (decoded) text in spectacle when screenshotting QR code(s). This is no longer working under my user profile. Not sure what's causing this. With a clean user/profile it's working.

Tried starting spectacle from CLI, but don't see anything of interest.

Trashed all the cache / config files / folders with spectacle in the name under ~/.config and ~/.cache, but this doesn't help.

Any ideas where it might be going wrong? Not sure how to debug this. Seems it should just work by default, can't find anything in the settings to turn this on/off.
Comment 1 Nicolas Fella 2024-10-12 14:40:10 UTC
This works as expected for me
Comment 2 freaky 2024-10-12 15:13:32 UTC
It does for me with a clean user profile too.

Would prefer not to trash my entire profile though. Was hoping someone would have some pointers as to what might be causing this. Starting spectacle in CLI isn't helpful with regards to the output. No clue why it stopped working. There doesn't seem to be a setting to turn it off, executable is linked to 
        libZXing.so.3 => /usr/lib64/libZXing.so.3 (0x00007f514c826000)
which I presume adds this functionality (if that were broken it wouldn't work with clean profile either).

No ideas? :)
Comment 3 Noah Davis 2024-10-12 18:55:58 UTC
(In reply to freaky from comment #2)
> There doesn't seem to be a setting to turn it off, executable is
> linked to 
>         libZXing.so.3 => /usr/lib64/libZXing.so.3 (0x00007f514c826000)
> which I presume adds this functionality (if that were broken it wouldn't
> work with clean profile either).

It is Prison (https://invent.kde.org/frameworks/prison) that provides the functionality to Spectacle, which itself uses zxing-cpp to do the QR code scanning.
Comment 4 freaky 2024-10-14 12:40:05 UTC
Hi,

I found the culprit, I have it set to automatically copy the resulting capture to clipboard. That results in a default message that the image was copied to clipboard.

It seems to use the same bar / notification. If I disable the automatic copy to clipboard I nicely get the QR-/barcode contents listed.

I'm fine with not getting a message it was copied to clipboard.
Comment 5 andy 2025-03-20 00:17:09 UTC
Same experience as freaky@bananateam.nl here. A bunch of us were confused on reddit "What? Spectacle has QR code support?"  

After some poking at it, figured out it only shows the QR text code with Options > General > After taking a screenshot > Do not copy anything (cannot be "Copy image to clipboard"!)

and then I found this bug exists

ref https://www.reddit.com/r/kde/comments/1jezwte/a_hidden_piece_of_useful_software_the_kde_qr_code/
Comment 6 Noah Davis 2025-03-21 17:23:54 UTC
Wow! I guess I need to come up with a way to combine inline messages since they replace/override each other.