[plasmashell] [Bug 414062] SDDM theme should support connecting to a network and viewing network status

Sergey Katunin bugzilla_noreply at kde.org
Tue Sep 19 20:38:35 BST 2023


https://bugs.kde.org/show_bug.cgi?id=414062

--- Comment #5 from Sergey Katunin <sulmpx60 at yandex.ru> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Visual-design mailing list