SUMMARY STEPS TO REPRODUCE 1. Auto-align the Icons (I chose Top to Bottom and Left) 2. Move an Icon 3. Reboot OBSERVED RESULT The Desktop Icons get rearranged randomly. If not corrected manually, it gets worse with every reboot. EXPECTED RESULT The Icons/Folders/Files should stay where they were at the last reboot. SOFTWARE/OS VERSIONS KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.9
Darn. Do you by any chance have multiple screens? Does the issue reproduce when using left-to-right layout? Can you attach a screenshot showing your desktop when it's in a good state, before the problem happens?
Created attachment 158232 [details] The Desktop with correctly positioned Icons
Created attachment 158233 [details] The Desktop with messed up positioned Icons
Created attachment 158234 [details] The Desktop with messed up positioned Icons aligned to the right
(In reply to Nate Graham from comment #1) > Darn. Do you by any chance have multiple screens? > > Does the issue reproduce when using left-to-right layout? > > Can you attach a screenshot showing your desktop when it's in a good state, > before the problem happens? Hi, no I do not use multiple screens. This problems also occurs if the Icons are aligned to the right. I added the screenshots as attachments
Thanks. What about when using a left-to-right layout rather than a top-to-bottom layout? Does the problem still happen?
Created attachment 158313 [details] The Desktop with correctly positioned Icons (Top to Bottom, ltr)
Created attachment 158314 [details] The Desktop with correctly positioned Icons (Top to Bottom, rtl)
Created attachment 158315 [details] The Desktop with correctly positioned Icons (Top to Bottom, ltr, after reboot)
(In reply to Nate Graham from comment #6) > Thanks. What about when using a left-to-right layout rather than a > top-to-bottom layout? Does the problem still happen? No. The Icons stay in place if positioned Top to Bottom, Left to Right. If aligned to the right, the Icons still stay in place. So this bug only occurs if the Icons are positioned to fill the height of the screen, rather than the width.
I'm a bit confused, sorry. Originally you said: > I chose Top to Bottom and Left [...] The Desktop Icons get rearranged randomly. Now you're saying: > The Icons stay in place if positioned Top to Bottom, Left to Right. If aligned to the right, > the Icons still stay in place. Can you please clarify which exact set of settings cause the problem, and which exact set of settings prevent the problem?
(In reply to Nate Graham from comment #11) > I'm a bit confused, sorry. Originally you said: > > > I chose Top to Bottom and Left [...] The Desktop Icons get rearranged randomly. > > Now you're saying: > > > The Icons stay in place if positioned Top to Bottom, Left to Right. If aligned to the right, > > the Icons still stay in place. > > Can you please clarify which exact set of settings cause the problem, and > which exact set of settings prevent the problem? Yes. Sorry for the confusion. This problem is caused if Arrange (3th Option from the Top under "Symbols") is set to "Top to Bottom" and Align (4th Option from the Top under "Symbols") is set to Left or Right. The problem does not exist if the Arrange Option is set to "Left to Right"
"Sort after" also needs to be set to "Not Sorted"
Thanks.
Cannot reproduce the issue when I use those settings.
(In reply to Nate Graham from comment #15) > Cannot reproduce the issue when I use those settings. Okay. So as this problem seems to be specific to me for now I would like to ask if there is a workaround. Specifically a terminal command which I could run which sets the sorted option to name and then resets it? Also I know that this probably won't matter but I also have changed a few stock settings and I am pretty sure, that the problem did not occur before. I also use KDE in German. Specifically I changed the following Settings: - Accent color to custom (#0c996a) - Theme set to Breeze Dark both in Plasma-Style and Colors. - Custom Startscreen - Wobbly Windows Because I changed my accent color, I also noticed that some folders on the Desktop have the accent color but most of them are the default blue. This can be seen on the first attachment. Every Folder except for the "test" folder is green.
Well, we still have to figure out why it's happening to you. :) Just because I can't reproduce the issue doesn't mean there's no bug. Probably there is something else different about our setups that explains it. Does the issue still happen if you create a new user account, log into it, and replicate the same setup here?
(In reply to Nate Graham from comment #17) > Well, we still have to figure out why it's happening to you. :) Just because > I can't reproduce the issue doesn't mean there's no bug. Probably there is > something else different about our setups that explains it. > > Does the issue still happen if you create a new user account, log into it, > and replicate the same setup here? No. If I create a new user and change the settings listed above, this issue doesn't seem to occur, at least with my empty test files.
All right, that definitely suggests that some stale config is causing this issue. If you can stand it, I might recommend resetting your Plasma configs by moving aside (not deleting) ~/.config/plasmashellrc and ~/.config/plasma-org.kde.plasma.desktop-appletsrc. The background here is that for Plasma 5.27, we implemented a new system for mapping Plasma desktops, panels, and desktop icons to screens that is fundamentally more correct by design, and as a result much more robust. We also added code to migrate old settings to this new system. Unfortunately, due to the non-determinism baked into the old system, the migration code works better the simpler your arrangement of screens, desktops, and panels was. So sometimes it didn't work and you need to just start over with a clean config. The good news is that this shouldn't recur going forward due to the new system we have in Plasma 5.27. So hopefully this is the last time it should ever happen!
(In reply to Nate Graham from comment #19) > All right, that definitely suggests that some stale config is causing this > issue. > > If you can stand it, I might recommend resetting your Plasma configs by > moving aside (not deleting) ~/.config/plasmashellrc and > ~/.config/plasma-org.kde.plasma.desktop-appletsrc. > > The background here is that for Plasma 5.27, we implemented a new system for > mapping Plasma desktops, panels, and desktop icons to screens that is > fundamentally more correct by design, and as a result much more robust. We > also added code to migrate old settings to this new system. Unfortunately, > due to the non-determinism baked into the old system, the migration code > works better the simpler your arrangement of screens, desktops, and panels > was. So sometimes it didn't work and you need to just start over with a > clean config. > > The good news is that this shouldn't recur going forward due to the new > system we have in Plasma 5.27. So hopefully this is the last time it should > ever happen! Sadly that didn't work :( the issue still occurs
...having same issue with manually positioned desktop icons rearranging after shutdown/bootup
Git commit cc44615b34dacc2a4acfdc82de885c943318a7f6 by Akseli Lahtinen. Committed on 06/11/2024 at 16:30. Pushed by akselmo into branch 'master'. Refactor icon positioner saving and loading The icon positioner saving and loading is handled by QML, which makes it a bit difficult to work with the logic in positioner CPP files. This change does the following: - Explicitly save only on user interactions - Moved the save and load of config to positioner.cpp - Easier debugging of the saving and loading functions - Still uses the JSON style of save/loading like the old one - Technically should be compatible with the old config, which was also JSON. - Makes positionerApplet accessible from FolderView qml - Various checks for checking if screen is enabled or not to avoid doing unnecessary work when screen is off - A lot of fixes to avoid any racing conditions - Removed any timers - Added various unit tests Alternative to https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2603 Related: bug 482875, bug 494874, bug 472137, bug 433867, bug 494412, bug 449069, bug 495047, bug 453314 FIXED-IN: 6.3.0 M +1 -1 containments/desktop/package/contents/ui/FolderView.qml M +1 -48 containments/desktop/package/contents/ui/FolderViewLayer.qml M +165 -26 containments/desktop/plugins/folder/autotests/positionertest.cpp M +18 -3 containments/desktop/plugins/folder/autotests/positionertest.h M +23 -7 containments/desktop/plugins/folder/foldermodel.cpp M +5 -0 containments/desktop/plugins/folder/foldermodel.h M +176 -60 containments/desktop/plugins/folder/positioner.cpp M +37 -8 containments/desktop/plugins/folder/positioner.h https://invent.kde.org/plasma/plasma-desktop/-/commit/cc44615b34dacc2a4acfdc82de885c943318a7f6