social.opendesktop.org is one of the many independent Mastodon servers you can use to participate in the fediverse.

Administered by:

Server stats:

24
active users

Without telling your distro this question is not helpful.

Discover uses packagekit, an abstraction layer that can do things like install, update, remove on many different distros.

But maybe not.

Try to enter in the terminal pkcon upgrade and if a GUI password prompt pops up, click on “expand” and see the action that is used like org.somenama.packagekit_update

This GUI prompt might also already be the one you described

github.com/boredsquirrel/Linux/tree/main/polkit

Some little things that make linux distros easier to use! - boredsquirrel/Linux
GitHubLinux/polkit at main · boredsquirrel/LinuxSome little things that make linux distros easier to use! - boredsquirrel/Linux

Sorry I thought that Discover was only used on KDE neon, which thefore is the distro, and the CLI equivalent is indeed the one you mentioned.

So what’s the solution for this distro ?

Thanks

I used Neon for a while. Again, can you please give the needed information. If the password dialog shows, at the left click on “expand”/“show more” and you see the exact action that is executed.

Then have a look at the rules in my linked repo, and replace the action in “libvirt” with that, and the group with “wheel”

(Use groups and send me the output, no idea if the sudo users are in the sudo group on Ubuntu)

@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

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

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