Bug 481085 - Battery widget in panel doesn't save "show percent" setting
Summary: Battery widget in panel doesn't save "show percent" setting
Status: RESOLVED DUPLICATE of bug 481113
Alias: None
Product: plasmashell
Classification: Plasma
Component: Battery Monitor (show other bugs)
Version: 6.0.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
: 483921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-08 21:32 UTC by Tobias G.
Modified: 2024-06-12 13:35 UTC (History)
9 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 Tobias G. 2024-02-08 21:32:53 UTC
SUMMARY
The battery widget in the panel has a setting to show the percent in the panel on the symbol. However, after a reboot the percentage is not shown anymore.


STEPS TO REPRODUCE
1.  activate "show battery percent" in battery/power widget
2. reboot
3. observe

OBSERVED RESULT
battery percent is not shown anymore

EXPECTED RESULT
battery percent should still be shown

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240206
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1
Kernel Version: 6.7.2-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7

ADDITIONAL INFORMATION
Comment 1 Doug 2024-02-09 06:06:46 UTC
Cannot reproduce

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.1
Kernel Version: 6.5.0-17-generic (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Pro WX 3200 Series
Comment 2 Nate Graham 2024-03-07 16:46:25 UTC
Me neither.

Is this the only thing that's not saving properly, or are any other settings also being reset on login?
Comment 3 Nate Graham 2024-03-08 20:39:06 UTC
Are you by any chance *not* using the systemd boot feature?
Comment 4 Bug Janitor Service 2024-03-23 03:46:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Nate Graham 2024-03-25 02:46:59 UTC
*** Bug 483921 has been marked as a duplicate of this bug. ***
Comment 6 Bug Janitor Service 2024-04-16 09:01:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libplasma/-/merge_requests/1100
Comment 7 David Edmundson 2024-04-17 11:33:21 UTC
Git commit c37a224bc7a33c6bd5ba7c546fec74880ad463b4 by David Edmundson.
Committed on 17/04/2024 at 11:31.
Pushed by davidedmundson into branch 'master'.

Sync config to disk when values change

When client code calls Plasmoid.confiuration.a = b the value in the
KConfigPropertyMap changes, but the underlying KConfigSkeleton does not
have any signals emitted until that value is flushed.

We need to connect it to the existing mechanism to sync changes after a
timeout.
Related: bug 482469, bug 482090, bug 481113, bug 482773, bug 483083

M  +1    -0    src/plasma/applet.cpp

https://invent.kde.org/plasma/libplasma/-/commit/c37a224bc7a33c6bd5ba7c546fec74880ad463b4
Comment 8 David Edmundson 2024-04-17 11:35:59 UTC
Git commit f7b3e98bd5c777a8c7510ec0edaaba6412cac474 by David Edmundson.
Committed on 17/04/2024 at 11:33.
Pushed by davidedmundson into branch 'Plasma/6.0'.

Sync config to disk when values change

When client code calls Plasmoid.confiuration.a = b the value in the
KConfigPropertyMap changes, but the underlying KConfigSkeleton does not
have any signals emitted until that value is flushed.

We need to connect it to the existing mechanism to sync changes after a
timeout.
Related: bug 482469, bug 482090, bug 481113, bug 482773, bug 483083


(cherry picked from commit c37a224bc7a33c6bd5ba7c546fec74880ad463b4)

M  +1    -0    src/plasma/applet.cpp

https://invent.kde.org/plasma/libplasma/-/commit/f7b3e98bd5c777a8c7510ec0edaaba6412cac474
Comment 9 dmatteo002 2024-05-25 19:42:34 UTC
I'm on Plasma Beta 6.1 (6.0.90) and this bug is again present for me.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.1-arch1-2 (64-bit)
Graphics Platform: Wayland
Comment 10 Jakub 2024-05-30 19:39:04 UTC
Can still reproduce on Plasma 6.0.5 on two different laptops. Now one has this setting permanently disabled (it was a relatively fresh plasma 6 install). And one has this setting permanently enabled (I enabled it back in Plasma 5).

Either way changes to this setting does not save the changes to the config file :c
Comment 11 Nate Graham 2024-06-12 13:35:51 UTC
Same root cause as Bug 481113 which was just fixed today for Plasma 6.1.

*** This bug has been marked as a duplicate of bug 481113 ***