Remove unused cups-browsed install override

This commit is contained in:
Ryan Hughes
2026-08-29 14:24:05 -04:00
parent 1dbc7d5bce
commit bb5b178e5f
3 changed files with 21 additions and 24 deletions
+11 -1
View File
@@ -65,7 +65,7 @@ verify_services() {
}
verify_printing_security() {
local lpinfo_output
local lpinfo_output path
! pacman -Q cups-pdf >/dev/null 2>&1 || fail "CUPS-PDF is absent"
pass "the root CUPS-PDF backend is not installed"
@@ -80,6 +80,16 @@ verify_printing_security() {
fail "no discovery service is enabled"
! systemctl is-active --quiet cups-browsed.service 2>/dev/null ||
fail "no discovery service is running"
for path in \
/etc/cups/cups-browsed.conf \
/usr/bin/cups-browsed \
/usr/lib/cups/backend/implicitclass \
/usr/lib/systemd/system/cups-browsed.service \
/etc/systemd/system/multi-user.target.wants/cups-browsed.service; do
[[ ! -e $path && ! -L $path ]] ||
fail "automatic printer discovery leaves no installed package files" "$path still exists"
done
pass "automatic printer discovery is absent from a stock install"
systemctl is-active --quiet cups.service || fail "CUPS is running"