Skip to content

Commit 9826cef

Browse files
committed
Add CUPS polkit rule
1 parent faedde2 commit 9826cef

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
raspberrypi-ui-mods (1.20250411) bookworm; urgency=medium
2+
3+
* Add CUPS polkit rule; remove dependency on zenity
4+
5+
-- Simon Long <[email protected]> Fri, 11 Apr 2025 11:58:04 +0100
6+
17
raspberrypi-ui-mods (1.20250408) bookworm; urgency=medium
28

39
* Disable xwayland persistence

debian/control

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ Package: raspberrypi-ui-mods
99
Architecture: any
1010
Depends: ${misc:Depends}, lxpanel, pcmanfm, openbox, xserver-xorg,
1111
x11-xserver-utils, polkitd, pkexec, lightdm, raspberrypi-sys-mods (>= 20210706),
12-
zenity, libglib2.0-bin, desktop-file-utils, lxsession, adduser,
12+
libglib2.0-bin, desktop-file-utils, lxsession, adduser,
1313
xdg-user-dirs, raspi-config (>= 20250312), wayfire, wf-panel-pi,
1414
qtwayland5, mate-polkit-bin, xsettingsd, gtk-nop, labwc
1515
Recommends: fonts-piboto (>=1.1), pipanel, rasputin, pi-greeter,
1616
rpd-plym-splash, rpd-wallpaper, pishutdown (>=0.31), scrot, pixflat-theme,
1717
gnome-icon-theme, pixflat-icons, lxplug-volumepulse, lxplug-bluetooth,
1818
lxplug-ejecter, lxplug-batt, rc-gui (>=1.18), lxplug-cputemp,
1919
lxplug-magnifier, rp-bookshelf, agnostics [armhf arm64], gui-pkinst,
20-
cups, rpinters, pi-printer-support, lxplug-updater,
20+
cups, rpinters, pi-printer-support, lxplug-updater, pprompt,
2121
lxplug-netman, lxplug-menu, qt5ct, qt5-style-plugins, xwayland, grim,
2222
wayvnc, labwc-prompt, kanshi, swayidle, wlopm, autotouch, raindrop,
2323
wfplug-menu, wfplug-bluetooth, wfplug-cputemp, wfplug-ejecter,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
polkit.addRule(function(action, subject) {
2+
if (action.id.indexOf("org.opensuse.cupspkhelper.mechanism.") == 0 &&
3+
subject.active == true && subject.local == true &&
4+
(subject.isInGroup("sudo") || subject.isInGroup("lpadmin"))) {
5+
return polkit.Result.YES;
6+
}
7+
});

0 commit comments

Comments
 (0)