From 63a2a88e6ccff155d13083990f2007ebcc8b52bd Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Thu, 6 Aug 2020 23:51:58 +0200 Subject: [PATCH] Allow starting kwin_wayland as root Running a Plasma Wayland session as root is not insecure, it is in fact the opposite. There is no way for other users to somehow influence this session due to the user separation and the user is more likely to only use this for administrative actions. This is in contrast to regular user sessions, which most likely start a mix of unprivileged programs next to privileged windows like some with authorized kauth helpers or even just sudo in a konsole tab. --- src/main_wayland.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main_wayland.cpp b/src/main_wayland.cpp index 045f961ce8..84745a89fd 100644 --- a/src/main_wayland.cpp +++ b/src/main_wayland.cpp @@ -362,10 +362,6 @@ void dropNiceCapability() int main(int argc, char * argv[]) { - if (getuid() == 0) { - std::cerr << "kwin_wayland does not support running as root." << std::endl; - return 1; - } KWin::disablePtrace(); KWin::Application::setupMalloc(); KWin::Application::setupLocalizedString();