Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595848 - kde-plasma/plasma-nm shows incorrect systray icon (with net-misc/networkmanager-1.4.0-r1)
Summary: kde-plasma/plasma-nm shows incorrect systray icon (with net-misc/networkmanag...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-02 03:49 UTC by David Flogeras
Modified: 2016-10-16 18:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2016-10-02 03:49:14 UTC
After upgrading to networkmanager-1.4.0-r1 and networkmanager-openvpn-1.2.4 (from 1.0.12-r1 and 1.0.8 resp), now when I connect to my VPN the plasma-nm applet doesn't show the correct icon (with the padlock) all the time.

Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2016-10-02 08:39:58 UTC
Does a rebuild of kde-frameworks/networkmanager-qt help? If not, please try rebuilding kde-plasma/plasma-nm next.
Comment 2 David Flogeras 2016-10-02 12:41:58 UTC
Hey Andreas, I forgot to mention that, I rebuild both plasma-nm and networkmanager-qt, then logged out/in with the problem persisting.

Here's another odd observation:  My wifi connection is a "system" configuration, while my openVPN is a "user" configuration.  Prior to the upgrade, when I would log out of my account wth the VPN connected, it would automatically disconnect the VPN and leave the wifi connected.  Now it doesn't disconnect from VPN, and when I log back in, the icon is correct (has the padlock).  This may indicate two bugs, but it also may be related.
Comment 3 David Flogeras 2016-10-02 16:01:09 UTC
I just tried networkmanager-1.4.2 which _just_ entered the tree.  Same result.
Comment 4 David Flogeras 2016-10-02 21:43:44 UTC
I tried upgrading kde-frameworks/* to 5.26 from stable (5.23), and rebuild networkmanager-qt and plasma-nm, but to no avail.

Next I upgraded kde-plasma/* to 5.7.5, and now it works as expected.  Not sure if the kde-frameworks was a necessary step, but it's installed.
Comment 5 David Flogeras 2016-10-02 22:12:19 UTC
I take that back, it _worked_ once, now it is exhibiting same + worse behaviour.  Sometimes the icon just stays in the unconnected state, even with just wifi connected.  Other times, it shows the VPN connected, but no wifi connection (just VPN and no others).

I'm not sure what else to test, aside from going back to stable frameworks, stable plasma, and masking the new networkmanager + networkmanager-openvpn.
Comment 6 Andreas Sturmlechner gentoo-dev 2016-10-05 09:17:26 UTC
No need to downgrade Plasma+Frameworks, this is ultimately caused by the networkmanager upgrade.
Comment 7 David Flogeras 2016-10-06 11:55:03 UTC
As per IRC, I tried upgrading to kde-frameworks/networkmanager-qt/5.26.0-r1.  It seems to have fixed the normal WiFi connection status/icons in the systray.

However on another machine which also uses networkmanager-openvpn, VPN connections are still messed up.  When I connect to the VPN, it doesn't show the padlock icon to indicate VPN connected, and also a spurious tun0 adapter shows up in my connection list (it did not do this on previous versions).

If I then logout/login with VPN connected, the icon is correct, but if I disconnect/reconnect to the VPN it doesn't indicate the connection with the padlock.  Is there a similar patch for networkmanager-openvpn?  I'm currently using networkmanager-1.4.0-r1 and networkmanager-openvpn-1.2.4 with kde-frameworks/networkmanager-qt/5.26.0-r1.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2016-10-06 14:13:11 UTC
According to KDE upstream, the root cause of this is actually in networkmanager itself, with networkmanager-qt-5.26.0-r1 just backporting attempts to work around the breakage.

The GNOME bug has links to networkmanager patches you could try. Also CCing gnome team in case they know which networkmanager release might contain these patches, or if they know anything further about the breakage eg. the networkmanager-openvpn issue.
Comment 9 Andreas Sturmlechner gentoo-dev 2016-10-06 16:05:54 UTC
There's a patch in networkmanager-qt.git master that is vpn state related, you could try that, but it seems based on the parent commit. However, the same line was existing already, so you could un-comment it by example: https://quickgit.kde.org/?p=networkmanager-qt.git&a=commit&h=e9f2cedefa98d2d58caeb30b1c3099144c4fbbba
Comment 10 Pacho Ramos gentoo-dev 2016-10-08 08:08:22 UTC
NM-1.4.2 includes the patches... could you give it a try?
Comment 11 David Flogeras 2016-10-08 11:49:37 UTC
@Pacho I don't see any difference between NM-1.4.0 and NM-1.4.2 wrt the openvpn bad behaviour.
Comment 12 Pacho Ramos gentoo-dev 2016-10-08 11:59:13 UTC
The fix from NM side is included in 1.4.2:
https://bugzilla.gnome.org/show_bug.cgi?id=770629#c6
Comment 13 Andreas Sturmlechner gentoo-dev 2016-10-16 08:18:57 UTC
Is it now fixed using latest stable kde-frameworks/networkmanager-qt-5.26.0-r2?
Comment 14 David Flogeras 2016-10-16 12:02:39 UTC
Yes it seems to be changing at least the states that I put it through.  Thanks a lot for the friendly support :)
Comment 15 Andreas Sturmlechner gentoo-dev 2016-10-16 18:33:22 UTC
Thanks for reporting.