mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 17:27:05 +09:00
Dont allow running the program as the root user
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user