Bug 479298 - Pinning apps or reordering icons doesn't update plasma-org.kde.plasma.desktop-appletsrc
Summary: Pinning apps or reordering icons doesn't update plasma-org.kde.plasma.desktop...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-02 11:56 UTC by Mike Lothian
Modified: 2024-06-07 06:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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