From 7d6732a7d3d286507ce11565bd4736fa3b94659c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 11 Sep 2024 19:51:57 +0200 Subject: Only allow x11 for now --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index fca2f87..120280d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -63,6 +63,11 @@ int main(int argc, char **argv) { exit(1); } + if(gsr_info.system_info.display_server == gsr::DisplayServer::WAYLAND) { + fprintf(stderr, "error: Wayland is currently not supported\n"); + exit(1); + } + std::string resources_path; if(access("images/gpu_screen_recorder_logo.png", F_OK) == 0) { resources_path = "./"; -- cgit v1.2.3