early-access version 1988
This commit is contained in:
5
externals/SDL/src/misc/unix/SDL_sysurl.c
vendored
5
externals/SDL/src/misc/unix/SDL_sysurl.c
vendored
@@ -33,8 +33,11 @@ SDL_SYS_OpenURL(const char *url)
|
||||
{
|
||||
const pid_t pid1 = fork();
|
||||
if (pid1 == 0) { /* child process */
|
||||
pid_t pid2;
|
||||
/* Clear LD_PRELOAD so Chrome opens correctly when this application is launched by Steam */
|
||||
unsetenv("LD_PRELOAD");
|
||||
/* Notice this is vfork and not fork! */
|
||||
const pid_t pid2 = vfork();
|
||||
pid2 = vfork();
|
||||
if (pid2 == 0) { /* Grandchild process will try to launch the url */
|
||||
execlp("xdg-open", "xdg-open", url, NULL);
|
||||
_exit(EXIT_FAILURE);
|
||||
|
Reference in New Issue
Block a user