mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-wfdctl: acquire DISPLAY, XAUTHORITY and XDG_RUNTIME_DIR from
environment, instead of hardcode
This commit is contained in:
parent
c11e7fae8b
commit
baad70995d
1 changed files with 1 additions and 9 deletions
|
@ -439,15 +439,7 @@ static int wfd_out_session_launch_gst(struct wfd_session *s, pid_t *out)
|
|||
sigaddset(&sigset, SIGTERM);
|
||||
sigprocmask(SIG_UNBLOCK, &sigset, NULL);
|
||||
|
||||
execvpe(args[0],
|
||||
args,
|
||||
(char *[]) {
|
||||
"XDG_RUNTIME_DIR=/run/user/1000",
|
||||
"GST_DEBUG=3",
|
||||
"DISPLAY=:0",
|
||||
"XAUTHORITY=/run/user/1000/gdm/Xauthority",
|
||||
NULL
|
||||
});
|
||||
execvp(args[0], args );
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue