plasma-applet-weather-widget icon indicating copy to clipboard operation
plasma-applet-weather-widget copied to clipboard

configs get "lost" in tray with plasma 5.7

Open holgersson32644 opened this issue 8 years ago • 7 comments

Hello,

I’m running the widget inside the systray and at every plasmashell restart (either via killall or logout/login) a new config JSON file in “~/.cache/plasmashell/plasmoids/org.kde.weatherWidget/“ is created while the old one is still there.

Currently as a workaround I can copy the old JSON into the new one, restart plasma-shell and have the widget with proper settings back.

I’m running plasma 5.7.2 with Qt 5.6.2 at Gentoo/Linux. What other informations I can provide you with?

Greetings, holgersson

holgersson32644 avatar Jul 23 '16 09:07 holgersson32644

Have the same on 5.7.1/5.7.2 and had the same on 5.6 too

msva avatar Jul 24 '16 18:07 msva

Sorry for my late response. I think widget in tray has always different plasmoidID so the cache is always recreated with the new plasmashell start. I'll try to create the cache with plasmoidID of the tray. When it is done, I get back to you.

kotelnik avatar Aug 07 '16 21:08 kotelnik

Please try the latest commits and let me know if it is fixed for you. Thanks!

kotelnik avatar Aug 08 '16 22:08 kotelnik

Yes, works for me here (Plasma 5.7.3 now). Thank you! :+1: I'm closing the issue report. If msva or other ones still get that bug, they might reopen or open a new one.

holgersson32644 avatar Aug 09 '16 09:08 holgersson32644

@holgersson32644 actually, it is only you and @kotelnik who can reopen this exact issue.

And, talking about the bug itself, unfortunatelly, it still reproduces for me (at least, under "clean" user, with empty homedir before starting experiment).

I just tried to create "clean" user, log into KDE, add plasmoid to the tray, change default [email protected] && NewYork@owm towns to [email protected], saved that settings, then logged out, then logged in again, and there is Bonn & NewYork again.

msva avatar Aug 09 '16 11:08 msva

@msva How did you test? On Gentoo the weather-widget is “packed“ as a separate one and I can build it from git sources there. Now, if I add a widget and move it into my panel everything works fine and the bug is fixed, but when I add the weather widget through the systray I still get the bug. Therefore I’m not sure if I have just two versions installed (one from extra package, fixed, one from plasma itself, buggy) or if directly in panel and via systray actually means sth. differnet for that plasmoid.

holgersson32644 avatar Aug 10 '16 09:08 holgersson32644

I think that the problem you are describing is different. You lost all settings, not only cache itself. I've heard the same thing from some people using redshift plasmoid in tray (https://github.com/kotelnik/plasma-applet-redshift-control/issues/23). I believe this has something to do with systray implementation but I need to investigate more so I can always replicate the issue and file a bug or discover the bottom of this.

kotelnik avatar Aug 10 '16 18:08 kotelnik