Bug 484806

Summary: Desktop icons rearrange when disconnecting and reconnecting external screen
Product: [Plasma] plasmashell Reporter: Gábor Katona <katonag>
Component: Desktop icons & Folder View widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexvkaam, hein, kdedev, thomas
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gábor Katona 2024-03-31 08:37:49 UTC
SUMMARY
The desktop icon rearrange when connecting/disconnecting an external screen (set as only screen) connected to a USB-C dock.

If the icons are arranged with the external screen connected then after disconnecting the screen some icons will be placed randomly. After reconnecting the same screen, the icons are now sorted by name.
If the icons are arranged with only the laptop screen then after connecting the external screen some icons get randomly placed. Disconnecting the external screen makes other icons to move around and after reconnecting the external screen they are again sorted by name.

Switching between screen by software has the same result and in this I have realized that probably plasmashell is restarting (the panel disappeared and reappeared.

Similar bug were in 5.27, but it was mostly resolved.

STEPS TO REPRODUCE
1.  Arrange icons with external screen connected
2. Disconnect external screen
3. Reconnect external screen

OBSERVED RESULT
The icons move around and at the end sorted by name.

EXPECTED RESULT
Icon arrangement should not change.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20240326
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
see e.g.: bug464873, bug469256
Comment 1 Gábor Katona 2024-04-02 18:52:39 UTC
More info: issuing 

kquitapp6 plasmashell && kstart plasmashell

restores the set order. But disconnecting the screen again destroys.
This is exactly the same that was observed in bug464873 more than a year ago.
Comment 2 akm 2024-05-10 12:07:15 UTC
Can confirm this. same behavior as bug 464873 under Plasma 5
Comment 3 TraceyC 2024-07-31 23:35:46 UTC
There are multiple bug reports about this behavior. I'm using 468546 as the main bug report.

*** This bug has been marked as a duplicate of bug 468546 ***