aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r--src/firejail/main.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 1f8907e4c..0269ff585 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -287,6 +287,26 @@ static void run_cmd_and_exit(int i, int argc, char **argv) {
287 exit(1); 287 exit(1);
288 } 288 }
289 } 289 }
290 else if (strcmp(argv[i], "--x11=xpra") == 0) {
291 if (checkcfg(CFG_X11)) {
292 x11_start_xpra(argc, argv);
293 exit(0);
294 }
295 else {
296 fprintf(stderr, "Error: --x11 feature is disabled in Firejail configuration file\n");
297 exit(1);
298 }
299 }
300 else if (strcmp(argv[i], "--x11=xephyr") == 0) {
301 if (checkcfg(CFG_X11)) {
302 x11_start_xephyr(argc, argv);
303 exit(0);
304 }
305 else {
306 fprintf(stderr, "Error: --x11 feature is disabled in Firejail configuration file\n");
307 exit(1);
308 }
309 }
290#endif 310#endif
291#ifdef HAVE_NETWORK 311#ifdef HAVE_NETWORK
292 else if (strncmp(argv[i], "--bandwidth=", 12) == 0) { 312 else if (strncmp(argv[i], "--bandwidth=", 12) == 0) {