diff --git a/src/common/rclconfig.cpp b/src/common/rclconfig.cpp index 69c613ae..7d540426 100644 --- a/src/common/rclconfig.cpp +++ b/src/common/rclconfig.cpp @@ -1405,7 +1405,9 @@ string RclConfig::getPidfile() const if (nullptr == p) { // Problem is, we may have been launched outside the desktop, maybe by cron. Basing // everything on XDG_RUNTIME_DIR was a mistake, sometimes resulting in different pidfiles - // being used by recollindex instances. So explicitely test for /run/user/$uid + // being used by recollindex instances. So explicitely test for /run/user/$uid, still + // leaving open the remote possibility that XDG_RUNTIME_DIR would be set to something + // else... rundir = path_cat("/run/user", lltodecstr(getuid())); if (path_isdir(rundir)) { p = rundir.c_str();