Bug 522322 - Pager Widget showing names of virtual desktops does not update to show new names until plasmashell is restarted
Summary: Pager Widget showing names of virtual desktops does not update to show new na...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Pager widget (other bugs)
Version First Reported In: 6.6.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 527594 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-06-28 05:24 UTC by sourabh.rajguru1
Modified: 2026-10-23 17:16 UTC (History)
5 users (show)

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


Attachments
Please untar to get the png and txt files which support the example testcase given in "Additional Information" in the bug description (84.57 KB, application/gzip)
2026-06-28 05:24 UTC, sourabh.rajguru1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sourabh.rajguru1 2026-06-28 05:24:40 UTC
Created attachment 193810 [details]
Please untar to get the png and txt files which support the example testcase given in "Additional Information" in the bug description

DESCRIPTION
Pager Widget in Taskbar doesn't update the names of Virtual Desktops when they are changed in System Settings

STEPS TO REPRODUCE
1. Start with any configuration of virtual desktops and the pager widget enabled in the taskbar
2. Change the name of one of the virtual desktops using System Settings -> Window Management -> Virtual Desktops
3. Click the "Apply" button in the settings window

OBSERVED RESULT
The virtual desktop you renamed **does not** get renamed in the Pager Widget in the Taskbar
(Unless you restart KDE Plasma Shell using `systemctl --user restart plasma-plasmashell`)

EXPECTED RESULT
The virtual desktop you renamed **does** get renamed in the Pager Widget in the Taskbar
(Without having to restart KDE Plasma Shell)

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 43
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.27.0
Qt Version: 6.10.3

ADDITIONAL INFORMATION
Let me give my personal bug experience as an example
I started in the following state:
- Pager Widget looked like A1.png (attached screenshot)
- System Settings -> Window Management -> Virtual Desktops looked like A2.png
- ~/.config/kwinrc looked like A3.txt

Then I changed the name of the "Moving" virtual desktop to "Foobar" and clicked "Apply"
New state:
- Pager Widget looked like B1.png
- System Settings -> Window Management -> Virtual Desktops looked like B2.png
- ~/.config/kwinrc looked like B3.txt
Comment 1 goo 2026-06-28 14:52:31 UTC
possibly related to another user experiencing a similar virtual desktop naming bug in kubuntu 26.04 as discussed here:

https://discuss.kde.org/t/after-last-update-virtual-desktop-names-are-not-shown-in-pager-every-reboot

it seems `~/.config/kwinrc` is not being written for the key=value pair for `Name_1=` and even when `Name_1=` is added manually, it is not being updated when changes are made via the GUI.
Comment 2 sourabh.rajguru1 2026-06-28 17:02:00 UTC
(In reply to goo from comment #1)
> possibly related to another user experiencing a similar virtual desktop
> naming bug in kubuntu 26.04 as discussed here:
> 
> https://discuss.kde.org/t/after-last-update-virtual-desktop-names-are-not-
> shown-in-pager-every-reboot
> 
> it seems `~/.config/kwinrc` is not being written for the key=value pair for
> `Name_1=` and even when `Name_1=` is added manually, it is not being updated
> when changes are made via the GUI.

I think my bug is a little different -- `~/.config/kwinrc` is getting updated correctly when I change the System Settings. The problem is that the pager is not refreshing its state when `~/.config/kwinrc` changes.
Comment 3 Nate Graham 2026-06-28 19:32:21 UTC
I can reproduce the issue… But only until Plasma is restarted. Then the new names take effect.
Comment 4 kde 2026-09-13 10:09:31 UTC
I can reproduce this on Plasma 6.7.4 (Arch Linux, X11, i3 as window manager instead of KWin) and tracked down the cause. It is a regression in the pager widget's QML from 6.6.0, not a kwinrc problem.

Reproduction without KWin: i3 only exposes existing workspaces as virtual desktops, e.g. _NET_DESKTOP_NAMES = "1", "6", "7", "8", "9". Close workspace 7 and open workspace 10: there are still five desktops, but the names are now "1", "6", "8", "9", "10" (xprop -root _NET_DESKTOP_NAMES confirms this). The pager keeps showing 1 6 7 8 9 until the number of desktops changes or plasmashell is restarted. Renaming a desktop in System Settings, as in the original report, is the same situation: names change, count doesn't.

Cause: commit 865364c0b ("applets/pager: linting", MR !3333, first released in 6.6.0) changed how the desktop label is created in applets/pager/qml/main.qml:

-    desktopLabelComponent.createObject(desktop, { index, model, desktopFrame });
+    desktopLabelComponent.createObject(desktop, { index, display: desktop.display, desktopFrame });

Before, the label got the model object and bound its text to model.display. Now it gets the name as a plain initial property value, which is copied once and never updated.

PagerModel resets itself (recreating the labels) when the number of desktops changes, but when only the names change it just emits dataChanged(DisplayRole). On X11 that comes from KX11Extras::desktopNamesChanged; on Wayland from PlasmaVirtualDesktop::done, which only emits desktopNamesChanged in libtaskmanager. So the existing labels keep their old text on both platforms.

The same commit did the same to window icons (decoration: windowRect.decoration), so icons in the pager don't update either when an application changes its icon at runtime.

Checked with a minimal QML reproduction on Qt 6.11.2 (same setup: ComponentBehavior: Bound, required properties, createObject() from a Repeater delegate, then changing a name in the model):

  copied value (current code)          1 6 7 -> 1 6 7
  Qt.binding(() => desktop.display)    1 6 7 -> 1 6 8
  passing model (pre-6.6 code)         1 6 7 -> 1 6 8

Suggested fix, which keeps the typed required properties from the linting change:

  desktopLabelComponent.createObject(desktop, { index, display: Qt.binding(() => desktop.display), desktopFrame });
  windowIconComponent.createObject(windowRect, { decoration: Qt.binding(() => windowRect.decoration) });
Comment 5 Bug Janitor Service 2026-10-22 09:57:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/4106
Comment 6 Niccolò Venerandi 2026-10-22 11:39:11 UTC
*** Bug 527594 has been marked as a duplicate of this bug. ***
Comment 7 Niccolò Venerandi 2026-10-22 20:51:34 UTC
Git commit 64b9cc4f13d595aa6ba429a41fa0ad543934e66d by Niccolò Venerandi.
Committed on 22/10/2026 at 20:32.
Pushed by niccolove into branch 'master'.

applets/pager: Keep desktop labels and window icons bound to the model

The label is created with a createObject call, which fixes the
label and icon values in place on creation. This commits adds
a binding so that they update over time.
Related: bug 501660, bug 506247

M  +6    -2    applets/pager/qml/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/64b9cc4f13d595aa6ba429a41fa0ad543934e66d
Comment 8 Niccolò Venerandi 2026-10-22 20:57:18 UTC
Git commit c8601a57f3568180a8057128e12d9e765219b470 by Niccolò Venerandi.
Committed on 22/10/2026 at 20:57.
Pushed by niccolove into branch 'Plasma/6.8'.

applets/pager: Keep desktop labels and window icons bound to the model

The label is created with a createObject call, which fixes the
label and icon values in place on creation. This commits adds
a binding so that they update over time.
Related: bug 501660, bug 506247


(cherry picked from commit d0eb9688384be8f0c8914570734f9fd50c67318d)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +8    -2    applets/pager/qml/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/c8601a57f3568180a8057128e12d9e765219b470