Bug 366827 - Widget location configuration is lost after reboot
Summary: Widget location configuration is lost after reboot
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kdeplasma-addons
Classification: Unclassified
Component: weather (show other bugs)
Version: 5.7.3
Platform: Neon Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords:
: 365838 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-16 11:04 UTC by soee
Modified: 2016-09-13 14:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soee 2016-08-16 11:04:01 UTC
If we set location for the widget it is lost after system reboot and thus widget show only dummy icon without any weather data.

Reproducible: Always

Steps to Reproduce:
1. Add widget
2. Select location
3. Reboot system

Actual Results:  
Location configuration is lost after reboot

Expected Results:  
Location shoudl be always available after it was configured.
Comment 1 Friedrich W. H. Kossebau 2016-08-16 13:05:53 UTC
Is the configuration completely lost, or will the widget show information again after the first update interval (see bottom of "Weather Station" config page) has passed?
Is your device connected to the internet when Plasma is started, or is the connection only made during that start?
Comment 2 soee 2016-08-17 12:26:41 UTC
It is lost. There are no any signs of it beeing restored. I will test more with cable connection also as not im using LTE (usb modem with sim). So when i boot my system modem needs ~ 2-3 min. to connect but when rebooting it is usually active at start.
Comment 3 Friedrich W. H. Kossebau 2016-08-24 01:25:48 UTC
One issue that I currently know about is: if the widget is loaded and there is no network connection at that point, the widget will be blank. And if the network connection is established, that sadly does not trigger an immediate pull of the data. Only at the next data update intervall the data will be fetched then. (Good news here, I have a patch prepared which seems to properly trigger an immediate update now).
Still, all the settings of the widget should still be present. Can you please check in the settings dialog of the widget both in the pages "Weather Station" and "Units" if the values are the same that you set before the reboot? The values for "Location", "Update every:", and the units?
So "It is lost" refers to data displayed in the widget itself, or also in the settings of the widget?
Comment 4 Friedrich W. H. Kossebau 2016-08-24 01:26:38 UTC
Git commit 2a1156b3e859a74333a8e8b88d48332d0d7dc6a1 by Friedrich W. H. Kossebau.
Committed on 24/08/2016 at 01:15.
Pushed by kossebau into branch 'master'.

[Weather] Use QNetworkConfigurationManager to know about online status

Seems to work better for getting the weather dataengine to pull & push
data to the widget once there is network

M  +13   -17   dataengines/weather/weatherengine.cpp
M  +3    -4    dataengines/weather/weatherengine.h

http://commits.kde.org/plasma-workspace/2a1156b3e859a74333a8e8b88d48332d0d7dc6a1
Comment 5 Friedrich W. H. Kossebau 2016-08-24 01:36:46 UTC
*** Bug 365838 has been marked as a duplicate of this bug. ***
Comment 6 Friedrich W. H. Kossebau 2016-09-12 21:05:54 UTC
Git commit 6a86b1ef05f446eb71593fc6a18b25b03e90f82d by Friedrich W. H. Kossebau.
Committed on 12/09/2016 at 20:39.
Pushed by kossebau into branch 'Plasma/5.7'.

[Weather] Use QNetworkConfigurationManager to know about online status

Seems to work better for getting the weather dataengine to pull & push
data to the widget once there is network

Backport of 2a1156b3e859a74333a8e8b88d48332d0d7dc6a1

M  +13   -17   dataengines/weather/weatherengine.cpp
M  +3    -4    dataengines/weather/weatherengine.h

http://commits.kde.org/plasma-workspace/6a86b1ef05f446eb71593fc6a18b25b03e90f82d
Comment 7 Wiktor 2016-09-13 14:40:44 UTC
Arch user here. I have not yet current Plasma 5.7 update so I'm not sure if it's already fixed but I'd like to throw ma 0,02 cents.

In my case when I start my computer there is ethernet connection established but with no access to outside world due to my company policy. Only after I login company firewall gives me access to internet.

I've found that the problem only happens on my workstation were I have to deal with firewall, but at home I also use Arch on laptop and there it works flawlessly.