Bug 479298

Summary: Pinning apps or reordering icons doesn't update plasma-org.kde.plasma.desktop-appletsrc
Product: [Plasma] plasmashell Reporter: Mike Lothian <mike>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cwo.kde, nate, qydwhotmail
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mike Lothian 2024-01-02 11:56:12 UTC
When I add applications from Kicker via "Pin to Task Manager", or reorder the icons on the Task Manager, after a reboot thing go back to the default
Comment 1 Mike Lothian 2024-01-04 16:24:11 UTC
So I can see on Plasma5 when I pin something ~/.config/plasma-org.kde.plasma.desktop-appletsrc is updated

[Containments][24][Applets][27]
immutability=1
plugin=org.kde.plasma.icontasks

[Containments][24][Applets][27][Configuration][General]
launchers=preferred://browser,applications:systemsettings.desktop,preferred://filemanager,applications:org.kde.konsole.desktop,applications:org.yuzu_emu.yuzu.desktop

I can see this in my plasma6 setup:

[Containments][2][Applets][5]
immutability=1
plugin=org.kde.plasma.icontasks

I'll try adding the matching bit manually
Comment 2 Mike Lothian 2024-01-04 16:27:21 UTC
That gets things working, but pinning or unpinning things isn't updating the config file
Comment 3 Nate Graham 2024-02-15 23:21:34 UTC
I recall this happening a few months ago, but it was fixed. If you manually restart plasmashell with plasmashell --replace, does it start working? Also, is it fixed with the latest RC version of Plasma 6?
Comment 4 Mike Lothian 2024-02-16 00:12:51 UTC
It's fixed on 6.1 git it would seem
Comment 5 Nate Graham 2024-02-16 00:13:39 UTC
Oh good!
Comment 6 cwo 2024-06-07 06:29:00 UTC
I have seen a lot of reports from users of Arch and Arch-derived distributions running into this bug right now. This bug seems live in their currently distributed version. Quitting plasmashell manually with kquitapp6 writes the configuration, but logging out does not.

I can't reproduce it on neon, but the appletsrc file only gets updated on logout.

Simple test: Run `grep "launchers=" ~/.config/plasma-org.kde.plasma.desktop-appletsrc`, pin or unpin a launcher, then run the command again.

On 5.27, the outputs are different; on current neon developer edition they are the same. The change is only save to the file when logging out or quitting/restarting plasmashell.

This shouldn't matter usually, but it might be better behavior to save this immediately -  even if the bug on Arch was fixed, the computer might crash for other reasons and remembering any configuration change in such cases would be better than reverting them.