From 51294af4c6a1366d2304bebba91722b7ba85d0d4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 20 Jul 2024 13:14:59 +0200 Subject: Fix portal being displayed as not supported --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 0a7c32e..39bc64c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1676,7 +1676,7 @@ static void list_supported_capture_options(gsr_egl *egl, bool wayland) { return; char *session_handle = NULL; - if(gsr_dbus_screencast_create_session(&dbus, &session_handle)) { + if(gsr_dbus_screencast_create_session(&dbus, &session_handle) == 0) { free(session_handle); puts("portal"); } -- cgit v1.2.3