Skip to content

Commit

Permalink
init: Change to ~ before launching tasks
Browse files Browse the repository at this point in the history
This should really be / with the change to ~ being handled by
gfxcompd, but good enough for now.
  • Loading branch information
lutoma committed Jul 7, 2021
1 parent 516a003 commit d018c7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions land/xelix-utils/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ static void launch_service(struct service* service) {
}
}

chdir("/home/root");
if(execv(argv[0], argv) < 0) {
perror("execv failed");
exit(-1);
Expand Down

0 comments on commit d018c7c

Please sign in to comment.