diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/x11.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/x11.c b/src/firejail/x11.c index e67260490..91017237d 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c | |||
@@ -442,6 +442,9 @@ void x11_start_xpra(int argc, char **argv) { | |||
442 | _exit(1); | 442 | _exit(1); |
443 | } | 443 | } |
444 | 444 | ||
445 | // add a small delay, on some systems it takes some time for the server to start | ||
446 | sleep(1); | ||
447 | |||
445 | // check X11 socket | 448 | // check X11 socket |
446 | char *fname; | 449 | char *fname; |
447 | if (asprintf(&fname, "/tmp/.X11-unix/X%d", display) == -1) | 450 | if (asprintf(&fname, "/tmp/.X11-unix/X%d", display) == -1) |