diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-11 19:51:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-11 19:58:30 +0200 |
commit | 7d6732a7d3d286507ce11565bd4736fa3b94659c (patch) | |
tree | f568b4acf186c15fcd1cf4af01808ac0fcb15194 /src/main.cpp | |
parent | c6942aaa9a9cd87ac1615214788ea6a09cfe0a4c (diff) |
Only allow x11 for now
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 = "./"; |