https://bugs.kde.org/show_bug.cgi?id=433799
Bug ID: 433799 Summary: item geometries not created for new user accounts created using lookandfeel and/or layout templates Product: plasmashell Version: 5.21.1 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: major Priority: NOR Component: Desktop Containment Assignee: notm...@gmail.com Reporter: jgh...@gmail.com CC: plasma-b...@kde.org Target Milestone: 1.0 Created attachment 136288 --> https://bugs.kde.org/attachment.cgi?id=136288&action=edit plasma desktop update javascript file SUMMARY When a new user account is created that uses a look-and-feel and/or layout template, although the applets are sized and situated correctly on first login, their geometries are not created on login or saved during logout. On second login, the applets are scrambled across the the desktop. My observations are that a plasma shell update named move_desktop_layout_config.js is supposed to read the appletsrc file and rename ItemsGeometries under the General config group, rename it to ItemGeometriesHorizontal and move it to the top level Containment. This has apparently worked for a while, but as of plasma 5.21, ItemsGeometries is not created during the initial login, so move_desktop_layout_config.js is reading a non-existent property for a non-existent value and then assigning that empty value to ItemGeometriesHorizontal. On second (and subsequent) login(s), the applets are, of course, scrambled across the the desktop. Although moving the applets back into position and re-adjusting their sizes does update ItemGeometriesHorizontal, this is not an acceptable workaround. Another observation is that moving or resizing any applet on your desktop after first login also flushes out ItemGeometriesHorizontal to appletsrc. And the last observation is that, as of plasma 5.21, the desktop geometries are no longer being updated on logout. They are being updated when added, moved or resized (but not when added via look-and-feel and/or layout template). STEPS TO REPRODUCE 1. Setup /etc/skel to use a look-and-feel and/or layout template by adding the lnf or template name to kdeglobals, kscreenlockerrc, ksplashrc, kwinrc and startupconfig. 2. Create a new user. 3. Login to the new account and check for ItemsGeometries or ItemGeometriesHorizontal in plasma-org.kde.plasma.desktop-appletsrc - neither exists 4. Logout from the new account 5. Login to the new account and check for ItemsGeometries or ItemGeometriesHorizontal in plasma-org.kde.plasma.desktop-appletsrc - neither exists and the desktop applets are completely scrambled across the desktop. OBSERVED RESULT ItemGeometriesHorizontal is not being created (or updated) in plasma-org.kde.plasma.desktop-appletsrc EXPECTED RESULT ItemGeometriesHorizontal should be created in plasma-org.kde.plasma.desktop-appletsrc SOFTWARE/OS VERSIONS Linux/KDE Plasma: linux-5.11.2, plasma-5.21 (available in About System) KDE Plasma Version: 5.21 KDE Frameworks Version: 5.2.2 Qt Version: 5.15.1 ADDITIONAL INFORMATION I've created a workaround script installed into /usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates named verify_geometries.js so that it runs last. I tried other positions for running this script and last is the only position that works. I've attached the javascript file. -- You are receiving this mail because: You are watching all bug changes.