From c380089faa21cb92738fc02560fa195042023512 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Sat, 10 Sep 2022 02:25:30 +0200 Subject: [PATCH] ossp-padsp.c: Don't set "XDG_RUNTIME_DIR", it's the daemon's job The code is unnecessary since 48fbb208d68480001f93aa08bd5565e49236f23b. --- ossp-padsp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ossp-padsp.c b/ossp-padsp.c index 31bbb33..a998a8b 100644 --- a/ossp-padsp.c +++ b/ossp-padsp.c @@ -1536,15 +1536,9 @@ static void action_post(void) int main(int argc, char **argv) { int rc; - static char runtime_dir[PATH_MAX]; ossp_slave_init(argc, argv); - snprintf(runtime_dir, sizeof runtime_dir, "/run/user/%llu", - (long long unsigned) getuid()); - if (access(runtime_dir, R_OK | X_OK) == 0) - setenv("XDG_RUNTIME_DIR", runtime_dir, 0); - page_size = sysconf(_SC_PAGE_SIZE); mainloop = pa_threaded_mainloop_new();