aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/x11.c')
-rw-r--r--src/firejail/x11.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/firejail/x11.c b/src/firejail/x11.c
index 8c781c67a..a7bd9fd29 100644
--- a/src/firejail/x11.c
+++ b/src/firejail/x11.c
@@ -127,6 +127,13 @@ void x11_start(int argc, char **argv) {
127 pid_t client = 0; 127 pid_t client = 0;
128 pid_t server = 0; 128 pid_t server = 0;
129 129
130
131 // unfortunately, xpra does a number of wired things when started by root user!!!
132 if (getuid() == 0) {
133 fprintf(stderr, "Error: this feature is not available when running as root\n");
134 exit(1);
135 }
136
130 // check xpra 137 // check xpra
131 if (x11_check_xpra() == 0) { 138 if (x11_check_xpra() == 0) {
132 fprintf(stderr, "\nError: Xpra program was not found in /usr/bin directory, please install it:\n"); 139 fprintf(stderr, "\nError: Xpra program was not found in /usr/bin directory, please install it:\n");