Bug 416748 - Settings of battery applet within system tray not saved after logout
Summary: Settings of battery applet within system tray not saved after logout
Status: RESOLVED UPSTREAM
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.9.7
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-25 12:54 UTC by lk.droz
Modified: 2021-03-06 16:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The system tray widget with the battery applet in red (2.04 KB, image/png)
2020-01-25 17:44 UTC, lk.droz
Details
The layout file I'm using (7.26 KB, text/plain)
2020-01-28 10:53 UTC, lk.droz
Details
The screenshot appearing after Right Click Dock > Layouts > Configure (55.10 KB, image/png)
2020-01-29 12:57 UTC, lk.droz
Details
default latte plasma layout with battery percent option (4.73 KB, text/plain)
2020-05-17 11:49 UTC, Marko Gobin
Details
default latte plasma layout after next login (4.56 KB, text/plain)
2020-05-17 11:50 UTC, Marko Gobin
Details
layout editor (88.18 KB, image/png)
2020-05-17 12:01 UTC, Marko Gobin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lk.droz 2020-01-25 12:54:00 UTC
SUMMARY
The settings of the battery applet within the system tray widget (e.g. battery, wi-fi, etc.) are reset after logging out. However, they are *not* reset after killing and restarting latte-dock.


STEPS TO REPRODUCE
1. Modify settings of the battery applet within the system tray
2. Logout of your KDE session and login back
3. Observe that settings modified in 1. were not saved

OBSERVED RESULT

The settings of the battery applet within the system tray are not saved (reset) after logging out.

EXPECTED RESULT

They should be saved (not reset).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0

ADDITIONAL INFORMATION

The tray's global settings (e.g. which applet to show/not to show) are not affected. Only the settings of the battery applet within the tray.
Comment 1 Michail Vourlakos 2020-01-25 13:21:11 UTC
Show me a screenshot, which settings you are mentioning?
Comment 2 Michail Vourlakos 2020-01-25 16:08:19 UTC
Has nothing to do with Latte...

The Battery applet in the systray has in its right click ContextMenu:

1. Show Energy Information (nothing to do with Latte this is a global kcm)
2. Configure Power Saving (nothing to do with Latte this is a global kcm)
3. Configure Battery and Brightness (only one setting "Show percentage" and works as expected after restarting Latte)

Battery applet popup:

The batter applet popup contains information from from [1] Energy Information... All in one this is not Latte,

If you use a plasma panel with a systray you probably going to have the same issue...
Comment 3 lk.droz 2020-01-25 17:44:46 UTC
Created attachment 125406 [details]
The system tray widget with the battery applet in red
Comment 4 lk.droz 2020-01-25 17:49:10 UTC
(In reply to Michail Vourlakos from comment #2)
> Has nothing to do with Latte...
> 
> The Battery applet in the systray has in its right click ContextMenu:
> 
> 1. Show Energy Information (nothing to do with Latte this is a global kcm)
> 2. Configure Power Saving (nothing to do with Latte this is a global kcm)
> 3. Configure Battery and Brightness (only one setting "Show percentage" and
> works as expected after restarting Latte)
> 
> Battery applet popup:
> 
> The batter applet popup contains information from from [1] Energy
> Information... All in one this is not Latte,
> 
> If you use a plasma panel with a systray you probably going to have the same
> issue...

I understand, but when using the Plasma Default Panel (the one you get when you right click on desktop > Add Panel > Default Panel) instead of the Latte dock, and with the same System Tray widget, I do not get the same bug. Therefore I thought this may be indirectly related to Latte. My apologies if this is not.
Comment 5 Michail Vourlakos 2020-01-25 19:25:17 UTC
Which settings are not persistent for you?
Comment 6 lk.droz 2020-01-26 12:22:30 UTC
(In reply to Michail Vourlakos from comment #5)
> Which settings are not persistent for you?

The 'Show Percentage' setting of the battery applet within the system tray widget, when the widget is used in the Latte dock.
Comment 7 Michail Vourlakos 2020-01-26 14:35:07 UTC
(In reply to lk.droz from comment #6)
> (In reply to Michail Vourlakos from comment #5)
> > Which settings are not persistent for you?
> 
> The 'Show Percentage' setting of the battery applet within the system tray
> widget, when the widget is used in the Latte dock.

Try, right click dock, Layouts, Configure..., is your layout locked to Readonly?
Comment 8 lk.droz 2020-01-26 17:37:30 UTC
(In reply to Michail Vourlakos from comment #7)
> (In reply to lk.droz from comment #6)
> > (In reply to Michail Vourlakos from comment #5)
> > > Which settings are not persistent for you?
> > 
> > The 'Show Percentage' setting of the battery applet within the system tray
> > widget, when the widget is used in the Latte dock.
> 
> Try, right click dock, Layouts, Configure..., is your layout locked to
> Readonly?

It is not. I have tried locking it to readonly, but the problem persists.
Comment 9 Michail Vourlakos 2020-01-26 17:48:33 UTC
Send me your Latte layout please, there is a chance to be broken... Have your tried when a new layout to test?
Comment 10 Michail Vourlakos 2020-01-26 17:49:06 UTC
Have you tried with a new layout to test if it is still reproducible?
Comment 11 lk.droz 2020-01-28 10:53:32 UTC
Created attachment 125477 [details]
The layout file I'm using
Comment 12 lk.droz 2020-01-28 10:54:09 UTC
(In reply to Michail Vourlakos from comment #10)
> Have you tried with a new layout to test if it is still reproducible?

I just tried, and it is reproducible yes. The bug happens with other layouts.
Comment 13 Michail Vourlakos 2020-01-28 12:23:02 UTC
Show me a screenshot please from window: right click Dock, Layouts, Configure...
Comment 14 lk.droz 2020-01-29 12:57:47 UTC
Created attachment 125515 [details]
The screenshot appearing after Right Click Dock > Layouts > Configure
Comment 15 William Franco Abdul Hai 2020-04-15 15:03:46 UTC
Came here to report this same bug. Still reproducible with latte-dock 0.9.11-1, Plasma 5.18.4 and Plasma Frameworks 5.69.0.
Comment 16 Michail Vourlakos 2020-04-15 15:13:49 UTC
(In reply to William F. from comment #15)
> Came here to report this same bug. Still reproducible with latte-dock
> 0.9.11-1, Plasma 5.18.4 and Plasma Frameworks 5.69.0.

you mean that "Show Percentage" value is not saved?
Comment 17 Michail Vourlakos 2020-04-15 15:51:26 UTC
In my system "Show Percentage" value of Battery applet works just fine all the time... So this is not reproducible for me.
Comment 18 William Franco Abdul Hai 2020-04-15 16:48:51 UTC
(In reply to Michail Vourlakos from comment #16)
> you mean that "Show Percentage" value is not saved?

Exactly. The bug occurs for me exactly as lk.droz describes.
Comment 19 Michail Vourlakos 2020-04-15 18:06:35 UTC
(In reply to William F. from comment #18)
> (In reply to Michail Vourlakos from comment #16)
> > you mean that "Show Percentage" value is not saved?
> 
> Exactly. The bug occurs for me exactly as lk.droz describes.

sorry, no idea why breaks for you. in my system works perfectly.
Comment 20 Marko Gobin 2020-05-16 17:29:47 UTC
(In reply to Michail Vourlakos from comment #19)
> (In reply to William F. from comment #18)
> > (In reply to Michail Vourlakos from comment #16)
> > > you mean that "Show Percentage" value is not saved?
> > 
> > Exactly. The bug occurs for me exactly as lk.droz describes.
> 
> sorry, no idea why breaks for you. in my system works perfectly.

Same issues happens to me, but only with latte dock and system tray battery applet (with separate battery widget it's working fine).

Also if I manually edit latte layout and add e.g.:
[Containments][13][Applets][61][Configuration][General]
showPercentage=true

on fist login percentage is shown but on next login it's missing again.
Comment 21 Michail Vourlakos 2020-05-16 19:08:53 UTC
show me a screenshot of your Layout editor please
Comment 22 Marko Gobin 2020-05-17 11:49:41 UTC
Created attachment 128538 [details]
default latte plasma layout with battery percent option
Comment 23 Marko Gobin 2020-05-17 11:50:09 UTC
Created attachment 128539 [details]
default latte plasma layout after next login
Comment 24 Michail Vourlakos 2020-05-17 11:57:34 UTC
I want a image screenshot of your Layouts Editor,
Right click Dock, Layouts, Configure... show me that window
Comment 25 Marko Gobin 2020-05-17 12:01:11 UTC
Created attachment 128540 [details]
layout editor

I just found out that if I select Multitple, percentage gets saved after login/logout.
Comment 26 Michail Vourlakos 2021-03-06 16:51:53 UTC
I think this is plasma related and it is either tracked down or already fixed with latest plasma versions