Bug 512212

Summary: When changing virtual desktop name from the overview, it doesn't get saved to .config/kwinrc
Product: [Plasma] kwin Reporter: Jari Pennanen <ciantic>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: If I change desktop name from this, it doesn't get saved to .config/kwinrc
You can click the name in the overview, and type new name, if you type it, it won't persist to .config/kwinrc and is lost on boot

Description Jari Pennanen 2025-11-16 18:32:58 UTC
Created attachment 186857 [details]
If I change desktop name from this, it doesn't get saved to .config/kwinrc

STEPS TO REPRODUCE
1. Create more than one desktop
2. Open overview, and rename a desktop

OBSERVED RESULT
New name doesn't get saved to .config/kwinrc, it only changes for the current session

EXPECTED RESULT
Desktop name is saved and persisted after reboot

Saving name works only from System Settings -> Virtual Desktops and then apply. It calls the save function here: 

https://github.com/KDE/kwin/blob/b54f96ee00578185896f2efb3b23421f7ce6b681/src/virtualdesktops.cpp#L757

Which stores the settings

I also tried using DBUS interface: org.kde.KWin.VirtualDesktopManager.setDesktopName it also does not save the desktop name.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-300.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 64 GiB of RAM (62,4 GiB usable)
Graphics Processor: NVIDIA GeForce GTX 1070
Manufacturer: ASUS
Comment 1 Jari Pennanen 2025-11-16 18:41:42 UTC
Created attachment 186858 [details]
You can click the name in the overview, and type new name, if you type it, it won't persist to .config/kwinrc and is lost on boot
Comment 2 Jari Pennanen 2025-11-16 19:41:03 UTC
Apparently DBUS interface is trying to save it:

https://github.com/KDE/kwin/blob/b54f96ee00578185896f2efb3b23421f7ce6b681/src/dbusinterface.cpp#L432

...but somehow it is not working, maybe s_loadingDesktopSettings is true or m_config is false at the time it tries to call the save.
Comment 3 Jari Pennanen 2025-11-16 20:25:03 UTC
Note:

Bug is **only** when changing name from overview. 

Changing via DBUS works, and is saved. I didn't try the DBUS well enough, it was my mistake.