Bug 445428 - Widgets that have been manually added but subsequently removed shall appear after restart.
Summary: Widgets that have been manually added but subsequently removed shall appear a...
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (other bugs)
Version First Reported In: unspecified
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-13 17:03 UTC by Roke Julian Lockhart Beedell
Modified: 2021-11-23 20:18 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2021-11-13 17:03:27 UTC
SUMMARY
Widgets that have been manually added but subsequently removed shall appear after restart.
http://kubuntu-users.narkive.com/wLJm0RBI
http://askubuntu.com/questions/1054204
http://forum.kde.org/viewtopic.php?f=289&t=165564

STEPS TO REPRODUCE
1. Do add any widget.
2. Do restart the operating-system.

OBSERVED RESULT
The widget or widgets shall appear.

EXPECTED RESULT
The widget or widgets should have been removed.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.3
KDE Frameworks Version: Frameworks: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
`rpm-ostree status
State: idle
Deployments:
  fedora:fedora/rawhide/x86_64/kinoite
                   Version: Rawhide.20211112.n.0 (2021-11-12T06:15:18Z)
                BaseCommit: 1832b1a782e5110d5d41cb60ef829b40b7d7ad96354c729aa1940e7f298d1287
              GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
                      Diff: 1 removed, 10 added
       RemovedBasePackages: firefox 94.0-1.fc36, spectacle dolphin-plugins 21.08.3-1.fc36
           LayeredPackages: ksysguard gdb

● fedora:fedora/rawhide/x86_64/kinoite
                   Version: Rawhide.20211112.n.0 (2021-11-12T06:15:18Z)
                BaseCommit: 1832b1a782e5110d5d41cb60ef829b40b7d7ad96354c729aa1940e7f298d1287
              GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
       RemovedBasePackages: firefox 94.0-1.fc36, dolphin-plugins 21.08.3-1.fc36
                  Unlocked: transient

  fedora:fedora/rawhide/x86_64/kinoite
                   Version: Rawhide.20211109.n.0 (2021-11-09T06:14:23Z)
                BaseCommit: 587435380577e9378014f617f443800448aa5708dd77d2327f5d1e720ab9f5dd
              GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
       RemovedBasePackages: firefox 94.0-1.fc36, dolphin-plugins 21.08.3-1.fc36`

`uname -a
Linux fedora 5.16.0-0.rc0.20211111gitdebe436e77c7.11.fc36.x86_64 #1 SMP PREEMPT Thu Nov 11 16:10:26 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux`
Comment 1 Roke Julian Lockhart Beedell 2021-11-13 17:04:52 UTC
The content of "STEPS TO REPRODUCE" should be replaced by:
1. Do add any widget.
2. Do remove any widgets that have been manually added.
3. Do restart the operating-system.
Comment 2 Duncan 2021-11-16 02:00:34 UTC
User running most of kde/plasma live-git here, and I /think/ this may now be fixed, by the following commit to plasma-framework (select-copied from git log), not sure what release version it should appear in, but frameworks version is reported as 5.89.0 ATM, here (with that commit), so should be in frameworks 5.89 if it didn't make 5.88 (which is what you reported).  So if it's not fixed in 5.89, a similar fix needs applied elsewhere.

In the mean time a couple workarounds.

1) Here, I've found running the following command from krunner saves plasmashell config as it quits and restarts.

killall plasmashell; sleep 1; plasmashell

2) Judging by the comment in the git log below, another workaround may be to add a panel and immediately remove it, thereby triggering plasma to save its config.

* commit 1f0df3dd2
| Author:     Jan Blackquill <uhhadd@gmail.com>
| AuthorDate: Tue Oct 5 12:56:42 2021 -0400
| Commit:     Jan Blackquill <uhhadd@gmail.com>
| CommitDate: Tue Oct 5 13:04:48 2021 -0400
|
|     Corona: save after ending edit mode
|
|     Plasma can be somewhat amnesiac if you make changes to it that don't
|     involve adding/removing panels and it subsequently unexpectedly ends,
|     such as when it or the compositor crashes.
|
|     Calling requireConfigSync after edit mode ends guarantees that any changes
|     made by the user in edit mode will be applied.
|
|  src/plasma/corona.cpp | 4 ++++
|  1 file changed, 4 insertions(+)
Comment 3 Nate Graham 2021-11-23 20:18:27 UTC
Indeed, probably so.