Bug 454538

Summary: selectedLengthPolicy = 3 for a plasmoid no longer works
Product: [Plasma] plasmashell Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 5.24.90   
Target Milestone: 1.0   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2022-05-28 16:26:31 UTC
SUMMARY
On my computer, when I upgrade to plasma-desktop 5.24.90, many of my panel widgets (System Tray, Digital Clock, input method) go missing from my top panel (but some others are still shown). If I downgrade the plasma-desktop package (on Arch Linux) to 5.24.5, the missing widgets reappear on my top panel (without me having to add them again).

STEPS TO REPRODUCE
Unknown. I am unable to reproduce this on a fresh user account or in a VM, but it consistently happens on my main user account when I log in after upgrading.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.17.9-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 21.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics

ADDITIONAL INFORMATION
Git bisect says the following commit is responsible:
0d133cf082e21eed54788c511b14754337475016 is the first bad commit
commit 0d133cf082e21eed54788c511b14754337475016
Author: Niccolò Venerandi <niccolo@venerandi.com>
Date:   Mon Apr 4 13:12:19 2022 +0200

    Refactoring of qml/js side of the panel containment

 containments/panel/contents/ui/ConfigOverlay.qml | 302 ++++----------
 containments/panel/contents/ui/LayoutManager.js  | 231 ++++-------
 containments/panel/contents/ui/main.qml          | 483 +++++++----------------
 3 files changed, 301 insertions(+), 715 deletions(-)

I was unable to cleanly revert this commit on the Plasma/5.25 branch to test if it is indeed responsible.
Comment 1 Kishore Gopalakrishnan 2022-05-29 04:25:44 UTC
Okay, I finally figured out how to reproduce it:

STEPS TO REPRODUCE
1. Install this plasmoid: https://github.com/psifidotos/applet-window-title
2. Add it to a top panel, with at least one other plasmoid to the right of it.
3. Right-click on the plasmoid > configure > set its length to 'fill available space'
4. Click 'OK' to apply changes

OBSERVED RESULTS
The plasmoid extends till the end of the display, pushing other plasmoids out of the panel.

EXPECTED RESULTS
Plasmoid should behave as in Plasma 5.24.5, such that it takes the entire available space without pushing other plasmoids out of the panel.

ADDITIONAL INFORMATION
A. Not sure if this is a bug in the plasmoid or in Plasma (if you think this is a bug in the plasmoid, I will report it there)
B. The plasmoid tries to set a property called root.selectedLengthPolicy to the value '3' at https://github.com/psifidotos/applet-window-title/blob/master/contents/ui/config/ConfigAppearance.qml#L201 Is this property perhaps broken/removed?
Comment 2 Nate Graham 2022-06-01 17:47:48 UTC

*** This bug has been marked as a duplicate of bug 454095 ***