KaKi87@jlai.lu to KDE@lemmy.kde.social • 6 months agoInstall updates from Discover without password ?message-squaremessage-square6 fedilinkarrow-up17file-text
arrow-up17message-squareInstall updates from Discover without password ?KaKi87@jlai.lu to KDE@lemmy.kde.social • 6 months agomessage-square6 Commentsfedilinkfile-text
minus-squareZamundaaa@discuss.tchncs.dehexbear1·6 months agoYes, and many distros have a polkit rule set up to allow installing or updating without a password. You can likely just copy it from Fedora or sth linkfedilink
minus-squareKaKi87@jlai.luhexagonhexbear1·6 months agoCould you please elaborate on that ? Thanks linkfedilink
minus-squareZamundaaa@discuss.tchncs.dehexbear1·6 months agoFedora just has polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.packagekit.package-install" || action.id == "org.freedesktop.packagekit.package-remove") && subject.active == true && subject.local == true && subject.isInGroup("wheel")) { return polkit.Result.YES; } }); in /usr/share/polkit-1/rules.d/org.freedesktop.packagekit.rules. If you put the same file in there, it should work. linkfedilink
Yes, and many distros have a polkit rule set up to allow installing or updating without a password. You can likely just copy it from Fedora or sth
Could you please elaborate on that ? Thanks
Fedora just has
polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.packagekit.package-install" || action.id == "org.freedesktop.packagekit.package-remove") && subject.active == true && subject.local == true && subject.isInGroup("wheel")) { return polkit.Result.YES; } });
in
/usr/share/polkit-1/rules.d/org.freedesktop.packagekit.rules
. If you put the same file in there, it should work.