https://bugs.kde.org/show_bug.cgi?id=394961
Bug ID: 394961
Summary: Download (curl) error direkt after KDE Session start,
because Network not ready
Product: plasma-pk-updates
Version: unspecified
Platform: openSUSE RPMs
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
OpenSuse Leap 15.0
plasma5-pk-updates 0.3.1
After login KDE i will get a error messages: "Download (curl) error for
'http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.0/repodata/repomd.xml':
Error code: Connection failed Error message: Could not resolve host:
download.opensuse.org" because the Networkmanager is not finish to connect to
the wlan network.
After some try and error I have modify the main.qml File from the plasmoid, to
give the Networkmanager more time to finish the connection, and now the error
is gone.
--- main.qml.orginal 2018-05-12 18:46:05.000000000 +0200
+++ main.qml 2018-06-02 17:23:28.368694070 +0200
@@ -59,6 +59,20 @@
}
}
+ Timer { //wait on start, to give Networkmanager
time to make the wlan connection
+ id: waitonstart
+ repeat: false
+ triggeredOnStart: false
+ interval: 1000*60*2 // 2 Minuten
+ onTriggered: {
+ if(!needsForcedUpdate() && batteryAllowed && networkAllowed) {
+ PkUpdates.checkUpdates(false);
+ }
+ timer.start()
+ }
+ }
+
+
Binding {
target: plasmoid
property: "status"
@@ -95,9 +109,6 @@
}
Component.onCompleted: {
- if(!needsForcedUpdate() && batteryAllowed) {
- PkUpdates.checkUpdates(false);
- }
- timer.start()
+ waitonstart.start()
}
}
I hope it help to make KDE better :-)
--
You are receiving this mail because:
You are watching all bug changes.