chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: isolate emergency.target instead of emergency.service when we fail to mount...
[elogind.git]
/
src
/
path-lookup.c
diff --git
a/src/path-lookup.c
b/src/path-lookup.c
index 1a21ca078ad8f74c50f73223b0cd57a4877704d6..b39ce8b699784284a9f0189b2ea1a2e2369d8d79 100644
(file)
--- a/
src/path-lookup.c
+++ b/
src/path-lookup.c
@@
-102,7
+102,11
@@
static char** user_dirs(void) {
if ((e = getenv("XDG_DATA_DIRS")))
data_dirs = strv_split(e, ":");
else
if ((e = getenv("XDG_DATA_DIRS")))
data_dirs = strv_split(e, ":");
else
- data_dirs = strv_new("/usr/local/share", "/usr/share", NULL);
+ data_dirs = strv_new("/usr/local/share",
+ "/usr/local/lib",
+ "/usr/share",
+ "/usr/lib",
+ NULL);
if (!data_dirs)
goto fail;
if (!data_dirs)
goto fail;
@@
-183,11
+187,13
@@
int lookup_paths_init(LookupPaths *p, ManagerRunningAs running_as) {
if (!(p->unit_path = strv_new(
/* If you modify this you also want to modify
* systemdsystemunitpath= in systemd.pc.in! */
if (!(p->unit_path = strv_new(
/* If you modify this you also want to modify
* systemdsystemunitpath= in systemd.pc.in! */
- "/
dev/.
systemd/system",
+ "/
run/
systemd/system",
SYSTEM_CONFIG_UNIT_PATH,
"/etc/systemd/system",
"/usr/local/share/systemd/system",
SYSTEM_CONFIG_UNIT_PATH,
"/etc/systemd/system",
"/usr/local/share/systemd/system",
+ "/usr/local/lib/systemd/system",
"/usr/share/systemd/system",
"/usr/share/systemd/system",
+ "/usr/lib/systemd/system",
"/lib/systemd/system",
SYSTEM_DATA_UNIT_PATH,
NULL)))
"/lib/systemd/system",
SYSTEM_DATA_UNIT_PATH,
NULL)))