malcontent/libmalcontent
Simon McVittie 1abce3eb91 manager: Return MCT_MANAGER_ERROR_DISABLED if no accountsservice
In distributions that package shared libraries and daemons separately,
it's possible to have the shared library (because it's required to run
something like Flatpak) but not the accountsservice daemon or its
malcontent extension (because the administrator of this particular
installation has no interest in parental controls, and their choice of
desktop environment is such that nothing else depends on accountsservice
either). This minimizes the memory and disk space cost of enabling the
libmalcontent feature in Flatpak for those who do not need it, while
keeping it available for those that do.

Treat this the same as if accountsservice is available but the
malcontent extension is not: fail open, by returning
MCT_MANAGER_ERROR_DISABLED.

Resolves: https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/27
Bug-Debian: https://bugs.debian.org/972145
Signed-off-by: Simon McVittie <smcv@debian.org>
2020-10-15 09:04:13 +01:00
..
tests build: Re-add libglib-testing subproject 2020-07-07 15:29:11 +01:00
app-filter-private.h tree-wide: Replace usages of whitelist/blacklist 2020-06-09 15:35:21 -07:00
app-filter.c tree-wide: Replace usages of whitelist/blacklist 2020-06-09 15:35:21 -07:00
app-filter.h tree-wide: Replace usages of whitelist/blacklist 2020-06-09 15:35:21 -07:00
gconstructor.h libmalcontent: Add a constructor to bind the translation domain 2020-04-27 12:10:58 +01:00
init.c libmalcontent: Add a constructor to bind the translation domain 2020-04-27 12:10:58 +01:00
malcontent.h libmalcontent: Add enum types to fix introspection of MctManagerError 2020-04-04 00:37:26 +01:00
manager.c manager: Return MCT_MANAGER_ERROR_DISABLED if no accountsservice 2020-10-15 09:04:13 +01:00
manager.h libmalcontent: Add support for setting session limits 2020-01-16 13:17:45 +00:00
meson.build libmalcontent: Add a constructor to bind the translation domain 2020-04-27 12:10:58 +01:00
session-limits-private.h libmalcontent: Add a SessionLimits interface for time-limited sessions 2020-01-16 13:17:45 +00:00
session-limits.c session-limits: Add mct_session_limits_is_enabled() API 2020-03-24 11:06:16 +00:00
session-limits.h session-limits: Add mct_session_limits_is_enabled() API 2020-03-24 11:06:16 +00:00