Bug 462835 - Applets that aren't specified in the AppletOrder of desktop-appletrc prevents permanent panel changes
Summary: Applets that aren't specified in the AppletOrder of desktop-appletrc prevents...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: 5.26.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-10 03:37 UTC by Ethan
Modified: 2025-04-20 03:47 UTC (History)
3 users (show)

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


Attachments
Example of a broken appletrc (18.80 KB, text/plain)
2022-12-10 16:34 UTC, Ethan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ethan 2022-12-10 03:37:01 UTC
SUMMARY
NOTE: My summary of what happens here is partially speculation/my interpretation of what is happening, the only concrete information I have is what I did to fix this issue.

Sometimes, modifying a panel will have its changes improperly saved to `~/.config/plasma-org.kde.plasma.desktop-appletsrc`, leaving behind a definition and configuration of an `Applet`, but without including it in the `AppletOrder` of its `Containment`.
This results in its panel being unable to have its changes saved, as shown by the time that you've restarted or logged in and out you'll see that no changes have been made to the panel. Even trying to remove the applet from the panel editor on the desktop has no effect, but removing the definition of the `Applet` in the RC file that lacks an entry in the `AppletOrder` will fix the issue.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Comment 1 veggero 2022-12-10 15:38:21 UTC
Thanks for the detailed summary! May I also ask you an example of the broken config file?
Comment 2 Ethan 2022-12-10 16:34:31 UTC
Created attachment 154481 [details]
Example of a broken appletrc
Comment 3 Ethan 2022-12-10 16:35:12 UTC
(In reply to Ethan from comment #2)
> Created attachment 154481 [details]
> Example of a broken appletrc

I should've specified in the attachment that here the broken applet is a user switcher and its index is 120.
Comment 4 veggero 2022-12-11 15:13:57 UTC
Ok, so: in theory, if an applet is missing from the AppletOrder, it will be added back upon restart at the last place in the panel. If that does not happen to you, might I ask to `plasmashell --replace &` from a konsole, try to add/remove panel widgets, and then send me the entire log? I'm just trying to understand what might be going wrong.
Comment 5 Ethan 2022-12-26 12:19:16 UTC
(In reply to veggero from comment #4)
> Ok, so: in theory, if an applet is missing from the AppletOrder, it will be
> added back upon restart at the last place in the panel. If that does not
> happen to you, might I ask to `plasmashell --replace &` from a konsole, try
> to add/remove panel widgets, and then send me the entire log? I'm just
> trying to understand what might be going wrong.

Sorry for the (very) late reply. I assume you wanted me to use the broken appletrc, but I've been using a fixed one for a while now. I tested `plasmashell --replace &` with the broken appletrc to 'emulate' logging out and in to restart the shell, but the broken behaviour didn't occur there. It only actually occurs when I use broken appletrc, edit widgets, and then logout. Is there anything else you'd like me to try?
Comment 6 Niccolò Venerandi 2025-03-21 20:19:44 UTC
The code for saving applets has changed a bit since then, may I ask you to check again if this happens on Plasma 6.3?
Comment 7 Bug Janitor Service 2025-04-05 03:46:40 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2025-04-20 03:47:20 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.