Bug 421018 - Window size for barcode (QR code) is too small, so the bar code is hidden
Summary: Window size for barcode (QR code) is too small, so the bar code is hidden
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 5.15.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 18:59 UTC by Karl Ove Hufthammer
Modified: 2024-06-13 02:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.0
Sentry Crash Report:


Attachments
Screenshot showing the Klipper window (8.12 KB, image/png)
2020-05-04 18:59 UTC, Karl Ove Hufthammer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Ove Hufthammer 2020-05-04 18:59:05 UTC
Created attachment 128146 [details]
Screenshot showing the Klipper window

SUMMARY
When displaying the barcode for something on the clipboard, the window that pops up is so tiny that no barcodes are displayed at all. It looks like barcode feature isn’t working at all. (But it is, which can be seen by manually resizing the window). See attached screenshot.

STEPS TO REPRODUCE
1. Copy some text to the clipboard.
2. Right-click on the Clipper icon in the system tray and select ‘Show barcode’

OBSERVED RESULT
A window of minimal size appears, with just an ‘OK’ button and no barcodes.


EXPECTED RESULT
The window should have a reasonable size (perhaps one-half of the screen height, so that the QR code is easy to scan?).


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20200429
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.1


ADDITIONAL INFORMATION
If the text copied to the clipboard is *very short*, a tiny barcode *is* shown (but it is not usable). But for any longer text, no barcode is shown.
Comment 1 Nate Graham 2023-09-15 21:32:31 UTC
This has been fixed for Plasma 6.
Comment 2 Roy Orbitson 2023-11-17 00:05:36 UTC
Since this is still an issue in current releases of Plasma, the easiest workaround is to create a window rule.

While the undersized QR dialogue has focus, press Alt +F3 and go to More Actions > Configure Special Window Settings. Give it a more useful description, and edit the rule so it matches "plasmashell" for the window class, "Dialog Window" for the type, substring matches the title "Mobile Barcode" (or whatever it shows in your language). Then add properties to initially apply a position and force a minimum size, e.g. size 1280x640 and pos. 320, 220 will centre it on a 1920x1080 screen and make it large enough to show both the QR and Matrix codes.
Comment 3 Gabriel Barros 2024-06-12 14:18:52 UTC
I think on plasma 6 this was made un-workaroundable. This feature is now integrated in plasmashell own "mobile barcode" function (which i can only seem to reach via the shortcut "show barcode"

under plasmashell, it is impossible to create a window rule since then all other applets (e.g. wifi panel when you click the wifi icon in notification area) will also inherit that size/position from the rule. The barcode window class is "plasmashell org.kde.plasmashell"
Comment 4 Gabriel Barros 2024-06-12 14:20:28 UTC
the fix is probably changing one `height` to `implicitHeight` or something, but I am not smart enough to navigate plasma source. Failed to even find mentions of the barcode feature.
Comment 5 Roy Orbitson 2024-06-13 02:30:08 UTC
As per my previous comment, my window rule also requires a substring match on the window title. Does Plasma 6 not provide a usable title for this?