Desktop icons are surprisingly hard

The author spent three weeks fixing and refactoring legacy code regarding Plasma desktop icons’ positioning and data storage. The code had oddities like race conditions and backend code mixed with frontend code, leaving users frustrated. The position saving logic was updated to prevent saving icons’ positions while the screen is off, avoiding incorrect configurations. Icon positions are now only saved after explicit user actions. Issues with screen resolutions and margin errors were also addressed, improving the overall reliability of desktop icons. The author emphasizes the importance of comments in the code and hopes these changes will make desktop icons more reliable.

https://akselmo.dev/posts/plasma-desktop-icons-positioning-refactor/

To top