Bug 511920 - Renaming a file on the desktop causes it to reposition as if it's a new item
Summary: Renaming a file on the desktop causes it to reposition as if it's a new item
Status: VERIFIED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: 6.5.1
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 520527 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-11-10 15:40 UTC by zupnikszydlik
Modified: 2026-06-01 16:30 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zupnikszydlik 2025-11-10 15:40:24 UTC
SUMMARY
When a file is renamed on the desktop, its icon changes position as if it's a newly added item. This behavior mimics automatic alignment, even if the desktop layout was previously customized.

STEPS TO REPRODUCE
1. Rename the file on the desktop
2. Observe the file's position

OBSERVED RESULT
The file icon moves to a different position on the desktop

EXPECTED RESULT
The file icon remains in its original position after renaming

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.12.57-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GB of RAM (15.5 GB usable)
Graphics Processor: NVIDIA GeForce GTX 1070
Comment 1 kocandrlev 2025-11-15 10:18:10 UTC
The bug was already present in KDE Plasma 6.5.1

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.3
Kernel Version: 6.17.5-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 32 GiB of RAM (31,3 GiB usable)
Graphics Processor: AMD Radeon RX 6700 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B550 GAMING X V2
System Version: -CF
Comment 2 TraceyC 2025-11-17 23:08:36 UTC
I'm able to reproduce this on git-master
Comment 3 zupnikszydlik 2026-01-03 18:13:04 UTC
Hello, any news on this?
Plasma 6.5.5 is coming soon, and there’s still no information about a fix for this bug.
Comment 4 TraceyC 2026-01-07 00:39:11 UTC
Since the bug has been confirmed, this is just waiting for a developer to have the knowledge, time and motivation to fix it. You'll need to be patient.
Comment 5 Nate Graham 2026-05-27 15:29:08 UTC
*** Bug 520527 has been marked as a duplicate of this bug. ***
Comment 6 Akseli Lahtinen 2026-05-28 08:51:26 UTC
Git commit 872c9990a9f8ef25239542e72dfc4b7cd5e89341 by Akseli Lahtinen.
Committed on 28/05/2026 at 08:12.
Pushed by akselmo into branch 'master'.

Positioner: Fix disappearing icons on rename

When icons were renamed, they were not compared to
the old items name, but to the same new name.
This caused the positioner to think nothing had
changed.

In FolderModel we want to set the data to the folderModel
itself, not KDirModel, since FolderModel already handles
that. This makes sure our models do not get out of sync.

Remove the itemAboutToRename since it is not needed
Related: bug 520633
FIXED-IN: 6.7.0

M  +7    -9    containments/desktop/plugins/folder/foldermodel.cpp
M  +0    -1    containments/desktop/plugins/folder/foldermodel.h
M  +8    -19   containments/desktop/plugins/folder/positioner.cpp
M  +0    -3    containments/desktop/plugins/folder/positioner.h

https://invent.kde.org/plasma/plasma-desktop/-/commit/872c9990a9f8ef25239542e72dfc4b7cd5e89341
Comment 7 Akseli Lahtinen 2026-05-28 10:28:00 UTC
Git commit bd59c308b5eff6c58a046495d50f45cf46b29286 by Akseli Lahtinen.
Committed on 28/05/2026 at 08:58.
Pushed by akselmo into branch 'Plasma/6.7'.

Positioner: Fix disappearing icons on rename

When icons were renamed, they were not compared to
the old items name, but to the same new name.
This caused the positioner to think nothing had
changed.

In FolderModel we want to set the data to the folderModel
itself, not KDirModel, since FolderModel already handles
that. This makes sure our models do not get out of sync.

Remove the itemAboutToRename since it is not needed
Related: bug 520633
FIXED-IN: 6.7.0


(cherry picked from commit 872c9990a9f8ef25239542e72dfc4b7cd5e89341)

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

M  +7    -9    containments/desktop/plugins/folder/foldermodel.cpp
M  +0    -1    containments/desktop/plugins/folder/foldermodel.h
M  +8    -19   containments/desktop/plugins/folder/positioner.cpp
M  +0    -3    containments/desktop/plugins/folder/positioner.h

https://invent.kde.org/plasma/plasma-desktop/-/commit/bd59c308b5eff6c58a046495d50f45cf46b29286
Comment 8 agarplayerarlon 2026-06-01 15:38:58 UTC
I confirm that the merge request fixes the issue, thank you for the great work!