0bfc60813befb45e3dd4840795839806f5310e39 introduced a bunch of
systemd-specific stuff that broke building without systemd. Guard all of
the relevant things.
46f998d...
by
Nathaniel Russell <email address hidden>
printing: Clear members of GsdPrintNotificationsManager
Clear members of GsdPrintNotificationsManager in stop()
to not throw "Cancel-Subscription client-error-not-found" error
due to cancelling subscription twice.
e7e4b8b...
by
Philip Withnall <email address hidden>
rfkill: Fix use of deprecated g_memdup()
It’s been deprecated in GLib 2.68 in favour of `g_memdup2()`, which uses
correct argument types so as not to silently cause an overflow during an
implicit integer size conversion.
The existing code was safe and correct: this commit just fixes the
deprecation warning.
Signed-off-by: Philip Withnall <email address hidden>
8993854...
by
Philip Withnall <email address hidden>
power: Fix exit status checking for the backlight helper program
`g_spawn_check_exit_status()` operates on a *wait status* rather than an
*exit status*. A wait status is what’s returned by `waitpid()`, and it’s
a platform-specific combination of bits indicating whether the program
exited gracefully, or crashed/signaled, and what value it returned
from `main()` (if any). An exit status is the value returned from
`main()` (so, zero for a successfully-exiting application).
`g_spawn_check_exit_status()` has been deprecated since GLib 2.70
because of its confusing naming.
`g_subprocess_get_exit_status()` returns an exit status (so is named
correctly), but we don’t actually have to use it because `GSubprocess`
already provides an API which combines `g_subprocess_wait_async()` and
`g_spawn_check_wait_status()`: `g_subprocess_wait_check_async()`.
So just use that instead. It’s been available since GLib 2.40.
Signed-off-by: Philip Withnall <email address hidden>