diff options
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c index 9d9e7461..4768df33 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -1472,10 +1472,12 @@ rc_svcdir(void) char *env; if (rc_is_user()) { - if ((env = getenv("XDG_RUNTIME_DIR"))) { + if ((env = getenv("RC_RUNTIME_DIR"))) { + xasprintf(&path, "%s/%s", env, RC_USER_CONF_FOLDER); + } else if ((env = getenv("XDG_RUNTIME_DIR"))) { xasprintf(&path, "%s/%s", env, RC_USER_CONF_FOLDER); } else { - eerrorx("XDG_RUNTIME_DIR not set in user mode"); + eerrorx("neither RC_RUNTIME_DIR nor XDG_RUNTIME_DIR set in user mode"); } } else { #endif |