From 9c241f2fc7d45f28fe5fd85d203f3c728c66b33d 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/ 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) Signed-off-by: Luca Boccassi --- src/launch/launcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/launch/launcher.c b/src/launch/launcher.c index a4b74604..5933f1e0 100644 --- a/src/launch/launcher.c +++ b/src/launch/launcher.c @@ -898,7 +898,7 @@ static int launcher_load_standard_session_services(Launcher *launcher, NSSCache size_t n; data_dirs = getenv("XDG_DATA_DIRS") ?: - "/usr/local/share:/usr/share"; + "/etc:/usr/local/share:/usr/share"; while (*data_dirs) { sep = strchr(data_dirs, ':'); @@ -925,6 +925,7 @@ 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", "/usr/local/share", "/usr/share", "/lib",