Bug 414062

Summary: SDDM theme should support connecting to a network and viewing network status
Product: [Plasma] plasmashell Reporter: Said Bakr <said.fox>
Component: Theme - BreezeAssignee: visual-design
Status: CONFIRMED ---    
Severity: wishlist CC: dashonwwIII, julien.dlq, kde, nate, plasma-bugs, postix, rdieter, sulmpx60
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Said Bakr 2019-11-12 12:16:34 UTC
SUMMARY
There is no any way to allow interaction with network before login like what happened with Gnome. I had posted at the Sddm repo https://github.com/sddm/sddm/issues/1105 and someone told me it is related to the KDE itself not the Sddm.

STEPS TO REPRODUCE
1. Turn on any KDE based OS computer.
2. Before login there is no any hint or network property 

OBSERVED RESULT
There is no any network configuration told me, for example, the strength of Wifi connection, other networks, etc. 

EXPECTED RESULT
Showing basic network configuration or status before login

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kububtu/ 5.12.9
(available in About System)
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.47.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-11-12 19:27:07 UTC
> EXPECTED RESULT
> Showing basic network configuration or status before login
Is this to support network LDAP login from a computer without a hardwired network connection, or for another reason?
Comment 2 Said Bakr 2019-11-12 20:04:21 UTC
(In reply to Nate Graham from comment #1)
> > EXPECTED RESULT
> > Showing basic network configuration or status before login
> Is this to support network LDAP login from a computer without a hardwired
> network connection, or for another reason?

For another reason. The reason is to get any idea about the network status before login whatever it is wired or wireless and also to allow the anonymous user able to join another network if available.
Comment 3 Nate Graham 2020-01-12 22:54:31 UTC
*** Bug 401551 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2023-09-19 17:59:05 UTC
*** Bug 474576 has been marked as a duplicate of this bug. ***
Comment 5 Sergey Katunin 2023-09-19 19:38:35 UTC
Should I repeat message from Bug 474576?

(In reply to Nate Graham from Bug 474576 comment #2)
> Did you make this change purely in your SDDM theme? Were any changes to SDDM itself required?

Yes, purely in my SDDM theme. No changes were required in SDDM. 

But if a polkit policy is created in system for "org.freedesktop.NetworkManager.settings.modify.system", that requires admin rights (AUTH_ADMIN) for modify system connections of NetworkManager, then it also have to be created policy to allow sddm to modify system connections (because Wi-Fi from sddm-theme is system global connection, and not for any particular user), like:

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
        subject.isInGroup("sddm")) {
        return polkit.Result.YES;
    }
});

Apart from this moment, nothing else was needed, just QML in custom breeze theme.
Comment 6 Nate Graham 2023-09-20 17:24:45 UTC
Very cool. In that case please feel free to submit it upstream to the Breeze theme! I think this would be a valuable addition.

We'd need to handle the case of the system not having a polkit setup to allow admin actions to happen here though.
Comment 7 Sergey Katunin 2023-09-23 13:14:11 UTC
(In reply to Nate Graham from comment #6)
> Very cool. In that case please feel free to submit it upstream to the Breeze
> theme! I think this would be a valuable addition.
> 
> We'd need to handle the case of the system not having a polkit setup to
> allow admin actions to happen here though.

I'm glad to hear that. I will start adapting this for KDE 6, but I don't promise that it will be ready in the very near future. Anyway, it was important to find out from you about the demand for this feature, so I'll do it
Comment 8 Nate Graham 2023-09-25 19:30:03 UTC
Thanks a ton!