From 7b1c546321785224ef0d2df4d2f392d8d292c37e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 15 Jul 2024 20:10:00 +0200 Subject: Show info why screencast session is not restore if -restore-portal-session yes is not used --- 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 3d577b4..acb4c83 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2197,8 +2197,13 @@ int main(int argc, char **argv) { replay_buffer_size_secs += std::ceil(keyint); // Add a few seconds to account of lost packets because of non-keyframe packets skipped } + // TODO: Remove strdup const char *window_str = strdup(args["-w"].value()); + if(!restore_portal_session && strcmp(window_str, "portal") == 0) { + fprintf(stderr, "gsr info: '-w portal' option used without '-restore-portal-session yes'. The previous screencast session will be ignored\n"); + } + bool wayland = false; Display *dpy = XOpenDisplay(nullptr); if (!dpy) { -- cgit v1.2.3