Skip to content

Commit

Permalink
remote: Fetch ScreenCast version when using Remote Desktop
Browse files Browse the repository at this point in the history
The ScreenCast portal supports receiving session objects created by the
Remote Desktop portal. Encode that dependency by fetching both portals'
version when using Remote Desktop functions.

Closes flatpak#158
Fixes a1530a9
  • Loading branch information
GeorgesStavracas committed Sep 2, 2024
1 parent 6d1fb90 commit 58d4567
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libportal/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ get_remote_desktop_interface_version_returned (GObject *object,
g_variant_get_child (ret, 0, "v", &version_variant);
call->portal->remote_desktop_interface_version = g_variant_get_uint32 (version_variant);

create_session (call);
if (call->portal->screencast_interface_version == 0)
get_screencast_interface_version (call);
else
create_session (call);
}

static void
Expand Down

0 comments on commit 58d4567

Please sign in to comment.