Bug 468619 - Manually-positioned desktop files and folders get repositioned at login when using top-to-bottom + align right arrangement
Summary: Manually-positioned desktop files and folders get repositioned at login when ...
Status: REOPENED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.27.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-17 15:50 UTC by desktopbugreporting
Modified: 2024-01-29 03:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The Desktop with correctly positioned Icons (1.65 MB, image/png)
2023-04-20 13:50 UTC, desktopbugreporting
Details
The Desktop with messed up positioned Icons (1.65 MB, image/png)
2023-04-20 13:51 UTC, desktopbugreporting
Details
The Desktop with messed up positioned Icons aligned to the right (1.65 MB, image/png)
2023-04-20 13:51 UTC, desktopbugreporting
Details
The Desktop with correctly positioned Icons (Top to Bottom, ltr) (1.61 MB, image/png)
2023-04-22 09:49 UTC, desktopbugreporting
Details
The Desktop with correctly positioned Icons (Top to Bottom, rtl) (1.62 MB, image/png)
2023-04-22 09:50 UTC, desktopbugreporting
Details
The Desktop with correctly positioned Icons (Top to Bottom, ltr, after reboot) (1.62 MB, image/png)
2023-04-22 09:50 UTC, desktopbugreporting
Details

Note You need to log in before you can comment on or make changes to this bug.
Description desktopbugreporting 2023-04-17 15:50:46 UTC
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
Comment 1 Nate Graham 2023-04-19 01:24:55 UTC
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?
Comment 2 desktopbugreporting 2023-04-20 13:50:27 UTC
Created attachment 158232 [details]
The Desktop with correctly positioned Icons
Comment 3 desktopbugreporting 2023-04-20 13:51:02 UTC
Created attachment 158233 [details]
The Desktop with messed up positioned Icons
Comment 4 desktopbugreporting 2023-04-20 13:51:26 UTC
Created attachment 158234 [details]
The Desktop with messed up positioned Icons aligned to the right
Comment 5 desktopbugreporting 2023-04-20 13:52:39 UTC
(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
Comment 6 Nate Graham 2023-04-20 15:33:16 UTC
Thanks. What about when using a left-to-right layout rather than a top-to-bottom layout? Does the problem still happen?
Comment 7 desktopbugreporting 2023-04-22 09:49:59 UTC
Created attachment 158313 [details]
The Desktop with correctly positioned Icons (Top to Bottom, ltr)
Comment 8 desktopbugreporting 2023-04-22 09:50:21 UTC
Created attachment 158314 [details]
The Desktop with correctly positioned Icons (Top to Bottom, rtl)
Comment 9 desktopbugreporting 2023-04-22 09:50:45 UTC
Created attachment 158315 [details]
The Desktop with correctly positioned Icons (Top to Bottom, ltr, after reboot)
Comment 10 desktopbugreporting 2023-04-22 09:53:18 UTC
(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.
Comment 11 Nate Graham 2023-04-24 16:49:14 UTC
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?
Comment 12 desktopbugreporting 2023-04-26 15:45:26 UTC
(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"
Comment 13 desktopbugreporting 2023-04-26 15:46:47 UTC
"Sort after" also needs to be set to "Not Sorted"
Comment 14 Nate Graham 2023-04-26 19:56:51 UTC
Thanks.
Comment 15 Nate Graham 2023-04-26 20:05:45 UTC
Cannot reproduce the issue when I use those settings.
Comment 16 desktopbugreporting 2023-04-27 20:24:30 UTC
(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.
Comment 17 Nate Graham 2023-04-28 16:33:43 UTC
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?
Comment 18 desktopbugreporting 2023-04-28 19:48:33 UTC
(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.
Comment 19 Nate Graham 2023-04-28 20:32:26 UTC
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!
Comment 20 desktopbugreporting 2023-04-30 15:23:25 UTC
(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
Comment 21 garybig 2023-05-15 23:00:34 UTC
...having same issue with manually positioned desktop icons rearranging after shutdown/bootup