Only allow x11 for now

This commit is contained in:
dec05eba
2024-09-11 19:51:57 +02:00
parent c6942aaa9a
commit 7d6732a7d3
5 changed files with 17 additions and 9 deletions

View File

@@ -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 = "./";