Bug 412154 - Wifi indicator should show internet connectivity
Summary: Wifi indicator should show internet connectivity
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (show other bugs)
Version: 5.12.8
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-21 10:59 UTC by Shriramana Sharma
Modified: 2019-09-26 16:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot from Android and Plasma upon connecting to wifi networks with/without internet (4.38 KB, image/png)
2019-09-21 10:59 UTC, Shriramana Sharma
Details
Icon and tooltop indicate limited network connectivity (68.77 KB, image/png)
2019-09-22 08:57 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shriramana Sharma 2019-09-21 10:59:52 UTC
Created attachment 122777 [details]
Screenshot from Android and Plasma upon connecting to wifi networks with/without internet

SUMMARY
On other platforms such as Android, the wifi indicator shows a small ‘x’ near the wifi strength if there is no internet connectivity on the current wifi network. This is very useful and should be included in the wifi indicator KDE Plasma system tray, the list of networks that pops up on clicking said indicator, and any other relevant places.

STEPS TO REPRODUCE
1. Connect to a wifi network without internet connectivity.
2. Observe the wifi icon in the tray.
3. Connect to a wifi network with internet connectivity.
4. Observe the wifi icon in the tray.

OBSERVED RESULT
There is no significant difference in the appearance except for the signal strength.

EXPECTED RESULT
When connected to a wifi network without internet connectivity, there should be a small ‘x’ near the strength indicator.
Comment 1 postix 2019-09-21 14:51:31 UTC
You cannot easily determine whether you are connected to the internet or not.

For example, by default Android reads the responds code from
> connectivitycheck.gstatic.com

If it's != 204 it will show an "x". That means if the connection to this URL is blocked, Android will tell you have a restricted internet access, even though you can access all other addresses. In short: It's not reliable!

So what you are probably asking for is to detect captive portals. That should already work in the network manager and some enhancements have been implemented recently:
> https://phabricator.kde.org/D22079
Comment 2 postix 2019-09-22 08:57:23 UTC
Created attachment 122797 [details]
Icon and tooltop indicate limited network connectivity

If I see it correctly, this function already exists :)

* https://github.com/KDE/plasma-nm/blob/87fa14955632baeb040c8c067e00683ae4251774/kded/portalmonitor.cpp#L60

and

* https://bugs.kde.org/show_bug.cgi?id=411788
Comment 3 Nate Graham 2019-09-26 16:22:30 UTC
This was already implemented in a later Plasma version. :)