From a872c07f7a1a8d65ee507a33bac9b023d9d936b4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 24 Nov 2024 22:53:29 +0100 Subject: Dont allow running the program as the root user --- src/Overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Overlay.cpp') diff --git a/src/Overlay.cpp b/src/Overlay.cpp index 720bb2e..2475a77 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -1436,7 +1436,7 @@ namespace gsr { mgl_context *context = mgl_get_context(); Display *display = (Display*)context->connection; - if(is_compositor_running(display, 0)) + if(gsr_info.system_info.display_server != DisplayServer::X11 || is_compositor_running(display, 0)) return false; bool window_texture_loaded = false; -- cgit v1.2.3