Bug 512212 - When changing virtual desktop name from the overview, it doesn't get saved to .config/kwinrc
Summary: When changing virtual desktop name from the overview, it doesn't get saved to...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: core (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-16 18:32 UTC by Jari Pennanen
Modified: 2025-11-17 13:25 UTC (History)
1 user (show)

See Also:
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 (289.52 KB, image/png)
2025-11-16 18:32 UTC, Jari Pennanen
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 (129.01 KB, image/png)
2025-11-16 18:41 UTC, Jari Pennanen
Details

Note You need to log in before you can comment on or make changes to this bug.
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.