Show info why screencast session is not restore if -restore-portal-session yes is not used

This commit is contained in:
dec05eba
2024-07-15 20:10:00 +02:00
parent 63a953e2f0
commit 7b1c546321
2 changed files with 5 additions and 2 deletions

View File

@@ -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) {