Is that possible ?

Thanks

    • boredsquirrel@slrpnk.net
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      3 months ago

      I have examples in the repo I linked

      polkit.addRule(function(action, subject) {
        if action.id == "ACTION" {
          if subject.isInGroup("wheel") {
            return polkit.Result.YES;
          }
        }
      });
      
      • KaKi87@jlai.luOP
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        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
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          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!