]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler: Admin task check: Support to use libsnapd-glib instead of snapctl
authorTill Kamppeter <till.kamppeter@gmail.com>
Thu, 4 Mar 2021 14:27:59 +0000 (15:27 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 4 Mar 2021 14:27:59 +0000 (15:27 +0100)
commit3885bb6cc6194a8c18da7b5f0b498f842146d7b4
treee42a11f300b66c27dbcef8f8b0662528e8bf10f6
parent481a28b1457e076db89b95b9ad2d2ec6dec6f2c7
scheduler: Admin task check: Support to use libsnapd-glib instead of snapctl

When CUPS is running in a Snap the scheduler checks client Snaps
requesting administrative tasks calling the external executable
"snapctl" which does not scale well on many inquiries in parallel.

Therefore we use an equivalent library function of libsnapd-glib,
snapd_client_run_snapctl2_sync() instead, at least if the
libsnapd-glib is new enough to already contain this function, which we
check during build, by the ./configure script. If the function is not
available we automatically fall back to a build using the "snapctl"
utility.
config-scripts/cups-snap.m4
config.h.in
scheduler/auth.c