1
0
Fork 0
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:
Derek Dai 2017-02-21 15:52:48 +08:00
parent c11e7fae8b
commit baad70995d
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -439,15 +439,7 @@ static int wfd_out_session_launch_gst(struct wfd_session *s, pid_t *out)
sigaddset(&sigset, SIGTERM); sigaddset(&sigset, SIGTERM);
sigprocmask(SIG_UNBLOCK, &sigset, NULL); sigprocmask(SIG_UNBLOCK, &sigset, NULL);
execvpe(args[0], execvp(args[0], args );
args,
(char *[]) {
"XDG_RUNTIME_DIR=/run/user/1000",
"GST_DEBUG=3",
"DISPLAY=:0",
"XAUTHORITY=/run/user/1000/gdm/Xauthority",
NULL
});
exit(1); exit(1);
} }