aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-11 19:51:57 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-11 19:58:30 +0200
commit7d6732a7d3d286507ce11565bd4736fa3b94659c (patch)
treef568b4acf186c15fcd1cf4af01808ac0fcb15194 /src/main.cpp
parentc6942aaa9a9cd87ac1615214788ea6a09cfe0a4c (diff)
Only allow x11 for now
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
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 = "./";