Bug 508171 - After switching from Desktop layout to Folder Layout, desktop icon positions are reset until restarting plasmashell
Summary: After switching from Desktop layout to Folder Layout, desktop icon positions ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: 6.4.80
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-12 21:02 UTC by Nate Graham
Modified: 2025-08-21 15:00 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-08-12 21:02:32 UTC
Everything from today's git master.

STEPS TO REPRODUCE
1. Arrange some icons on the desktop
2. Restart plasmashell for good measure, just to make sure the positions were saved
3. Right-click on desktop > Desktop & Wallpaper
4. Switch to Desktop layout and click Apply
5. Switch back to Folder layout and click Apply

OBSERVED RESULT
Desktop icons are arranged alphabetically in a line, rather than in the custom arrangement

EXPECTED RESULT
Desktop icons retain the custom arrangement

ADDITIONAL INFORMATION
Restarting plasmashell makes the icons snap to the correct positions. It seems they're incorrect only right after switching layouts.
Comment 1 TraceyC 2025-08-13 17:26:53 UTC
I'm not able to reproduce this on today's git master
Comment 2 Akseli Lahtinen 2025-08-15 09:28:01 UTC
Can you test if this MR helps fix the issue? https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3152

Note that it also requires https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5756
Comment 3 Nate Graham 2025-08-18 19:38:29 UTC
Those patches *change* the manifestation of the issue, but they don't solve it: the "OBSERVED RESULT" changes to 

"desktop icons have disappeared"

As with the originally reported issue, restarting plasmashell sets everything right.
Comment 5 Akseli Lahtinen 2025-08-21 15:00:16 UTC
Git commit 23f5664648b2133538ab88a7e7c85196116b5962 by Akseli Lahtinen.
Committed on 21/08/2025 at 08:21.
Pushed by akselmo into branch 'master'.

Positioner: Load the positions at positioner completion

When positioner is loaded and the component is completed, we
should ask the positioner our initial icon positions.

This fixes issues where icons are not in right position
desktop-folderview is changed to desktop and back to folderview again

M  +5    -0    containments/desktop/package/contents/ui/FolderView.qml
M  +3    -2    containments/desktop/plugins/folder/positioner.h

https://invent.kde.org/plasma/plasma-desktop/-/commit/23f5664648b2133538ab88a7e7c85196116b5962