https://bugs.kde.org/show_bug.cgi?id=525564
Bug ID: 525564
Summary: Desktop System Monitor widgets override their manually
saved width after plasmashell restart
Classification: Plasma
Product: plasmashell
Version First 6.7.4
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Containment
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
Created attachment 196021
--> https://bugs.kde.org/attachment.cgi?id=196021&action=edit
System Monitor widget geometries before and after restarting plasmashell
DESCRIPTION
System Monitor widgets placed on the desktop do not preserve a valid width
explicitly chosen by the user. The correct geometry is saved in
`plasma-org.kde.plasma.desktop-appletsrc`, but when `plasmashell` starts it
expands some widgets to their `Layout.preferredWidth`, snaps them to the 16 px
desktop grid, moves them, and writes the changed geometry back to the
configuration file.
This makes it impossible to keep adjacent System Monitor widgets at an equal
user-selected width. The behavior is deterministic and can be reproduced by
restarting only `plasma-plasmashell.service`; a full reboot is not required.
The chosen width (192 px) is accepted by the desktop resize UI and is above the
pie-chart face's declared minimum width. Therefore a preferred content size
should not override an explicitly saved user size on every startup.
STEPS TO REPRODUCE
1. Add three `org.kde.plasma.systemmonitor` widgets to the desktop.
2. Select the pie-chart face (`org.kde.ksysguard.piechart`).
3. Place them next to each other and resize each one to `192 × 320` px.
4. Exit desktop edit mode and wait for Plasma to save the layout.
5. Verify that `ItemGeometries-3840x1080` contains width `192` for all three
applets.
6. Run: systemctl --user restart plasma-plasmashell.service
OBSERVED RESULT
Before restart:
- CPU: `x=3008, y=16, width=192, height=320`
- RAM: `x=3216, y=16, width=192, height=320`
- GPU: `x=3424, y=16, width=192, height=320`
After restart:
- CPU: `x=3008, y=16, width=192, height=320`
- RAM: `x=3200, y=16, width=208, height=320`
- GPU: `x=3408, y=16, width=224, height=320`
RAM and GPU are expanded and moved left. Plasma then persists these unwanted
geometries.
EXPECTED RESULT
All three widgets remain at the explicitly saved `192 × 320` geometry after
restarting plasmashell or logging in. `Layout.preferredWidth` may be
appropriate for a newly added widget, but it should not override a valid
geometry explicitly set and saved by the user.
SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.29.0
Qt Version: 6.11.2
Kernel Version: 7.1.13-2-MANJARO (64-bit)
Graphics Platform: Wayland
Display: 3840×1080, scale 1
plasma-workspace: 6.7.4-3
plasma-desktop: 6.7.4-1
libplasma: 6.7.4-1
libksysguard: 6.7.4-1
ADDITIONAL INFORMATION
- Reproducibility: Always with this layout.
# Technical observations
- The configuration contains the intended geometry before plasmashell is
restarted, proving that the resize operation is saved correctly.
- Only plasmashell needs to be restarted to reproduce the issue.
- The relevant applets use `org.kde.plasma.systemmonitor` and
`org.kde.ksysguard.piechart`.
- `BasicAppletContainer.qml` forwards `applet.Layout.preferredWidth` through
its own `Layout.preferredWidth`.
- The System Monitor full representation derives its preferred width from the
sensor face content.
- The desktop containment restores/saves geometry through
`ContainmentLayoutManager.AppletsLayout` and snaps it to its grid.
# Possibly related reports
- KDE Bug 413645 — Can't remember desktop widget positions after reboot
(resolved fixed): https://bugs.kde.org/show_bug.cgi?id=413645
- KDE Bug 457358 — Plasma panel causes desktop widgets to move after reboot
(duplicate of 413645): https://bugs.kde.org/show_bug.cgi?id=457358
- KDE Bug 495306 — An active sticky note resizes most reboots/logins (resolved
fixed): https://bugs.kde.org/show_bug.cgi?id=495306
- Community report specifically about System Monitor widgets:
https://forum.endeavouros.com/t/widgets-keep-changing-size-after-restart/71210
--
You are receiving this mail because:
You are watching all bug changes.