this post was submitted on 06 Jun 2024
14 points (88.9% liked)

KDE

5336 readers
79 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org/, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS
 

Is that possible ?

Thanks

you are viewing a single comment's thread
view the rest of the comments
[–] minecraftchest1@social.opendesktop.org 1 points 5 months ago (1 children)

@boredsquirrel
You need to create a polkit rule that allows authentication without password. I will see if I can send an example your way sometime this comming week.
@KaKi87

[–] boredsquirrel@slrpnk.net 2 points 5 months ago* (last edited 5 months ago) (2 children)

I have examples in the repo I linked

polkit.addRule(function(action, subject) {
  if action.id == "org.freedesktop.packagekit.system-update" {
    if subject.isInGroup("wheel") {
      return polkit.Result.YES;
    }
  }
});

Please ask KDE Neon devs, if placing this rule as /etc/polkit-1/rules.d/packagekit-update.rules is safe

[–] KaKi87@jlai.lu 1 points 4 months ago

Unfortunately it's not working 😅

Thanks

[–] KaKi87@jlai.lu 1 points 5 months ago (3 children)

I don't have a rules.d directory at /etc/polkit-1/ though, I only have localauthority and localauthority.conf.d.

Should I create the directory then create the file ?

Thanks

[–] boredsquirrel@slrpnk.net 1 points 4 months ago (1 children)

Yes create the directory. This is a standard directory but KDE Neon may not use it. Also you need to place that policy there and reload the polkit daemon (no idea how to do that, just reboot lol).

And as I said, if the admin password window shows, use the "show details" button at the left to get the ID of the polkit action.

KDE is a very empowering Desktop!

[–] KaKi87@jlai.lu 1 points 4 months ago (1 children)

Unfortunately it's not working 😅

Thanks

[–] boredsquirrel@slrpnk.net 1 points 4 months ago

Rule looks fine. Please contact KDE devs on discuss.kde.org

This will be Neon specific, on Fedora this is the directory used for polkit rules.

[–] boredsquirrel@slrpnk.net 1 points 5 months ago

Please ask KDE Neon devs.

Discuss.kde.org

Or file a bug on bugs.kde.org