diff --git a/src/firejail/x11.c b/src/firejail/x11.c index c0a501d93..d0afe59f9 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c @@ -1163,10 +1163,10 @@ void x11_start(int argc, char **argv) { } // check xpra - if (program_in_path("xpra")) - x11_start_xpra(argc, argv); - else if (program_in_path("Xephyr")) + if (program_in_path("Xephyr")) x11_start_xephyr(argc, argv); + else if (program_in_path("xpra")) + x11_start_xpra(argc, argv); else { fprintf(stderr, "\nError: Xpra or Xephyr not found in /usr/bin directory, please install one of them:\n"); fprintf(stderr, " Debian/Ubuntu/Mint: sudo apt-get install xpra\n"); diff --git a/src/man/firejail.1.in b/src/man/firejail.1.in index fd2fcb01d..92017d88e 100644 --- a/src/man/firejail.1.in +++ b/src/man/firejail.1.in @@ -3297,7 +3297,7 @@ $ sudo firejail \-\-writable\-var\-log Sandbox the application using Xpra, Xephyr, Xvfb or Xorg security extension. The sandbox will prevent screenshot and keylogger applications started inside the sandbox from accessing clients running outside the sandbox. -Firejail will try Xpra first, and if Xpra is not installed on the system, it will try to find Xephyr. +Firejail will try Xephyr first, and if Xephyr is not installed on the system, it will try to find Xpra. If all fails, Firejail will not attempt to use Xvfb or X11 security extension. .br