From be2875131bd717afc759e3bf5ba4547992ffdb9c Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 13 Sep 2024 19:44:54 +0200 Subject: [PATCH] launcher: allow searching for system-services in /etc/ and /run/ This is useful when an asset manager wants to install a system service while /usr/ is read-only (e.g.: local system services running on a different namespaced image). dbus-daemon also will search in /run/, so do the same for consistency, for ephemeral services. For the spec changes see: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/467 Signed-off-by: Luca Boccassi --- src/launch/launcher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launch/launcher.c b/src/launch/launcher.c index a4b74604..59857129 100644 --- a/src/launch/launcher.c +++ b/src/launch/launcher.c @@ -925,6 +925,8 @@ static int launcher_load_standard_session_services(Launcher *launcher, NSSCache static int launcher_load_standard_system_services(Launcher *launcher, NSSCache *nss_cache) { static const char *default_data_dirs[] = { + "/etc", + "/run", "/usr/local/share", "/usr/share", "/lib",