diff --git a/qubes-rpc/gui-fatal.c b/qubes-rpc/gui-fatal.c index 0bda201..1b71b00 100644 --- a/qubes-rpc/gui-fatal.c +++ b/qubes-rpc/gui-fatal.c @@ -28,6 +28,8 @@ static void produce_message(const char * type, const char *fmt, va_list args) case -1: exit(1); //what else case 0: + if (geteuid() == 0) + setuid(getuid()); fix_display(); #ifdef USE_KDIALOG execlp("/usr/bin/kdialog", "kdialog", "--sorry", dialog_msg, NULL);