Skip to content

Commit

Permalink
launcher: allow searching for system-services in /etc/
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bluca committed Sep 13, 2024
1 parent 4fa73fd commit 9c241f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/launch/launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ':');
Expand All @@ -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",
Expand Down

0 comments on commit 9c241f2

Please sign in to comment.