Skip to content

Commit

Permalink
ossp-padsp.c: Don't set "XDG_RUNTIME_DIR", it's the daemon's job
Browse files Browse the repository at this point in the history
The code is unnecessary since 48fbb20.
  • Loading branch information
davidebeatrici committed Sep 10, 2022
1 parent 9859a0c commit c380089
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ossp-padsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c380089

Please sign in to comment.