pidgin/pidgin

Increase timeout for initial XDP portal session to 2s
release-2.x.y
2020-04-05, David Woodhouse
87d96850a2d7
Parents 3c8f61de927c
Children 8c751a7fa2dd
Increase timeout for initial XDP portal session to 2s

It should still fail immediately when the portal isn't available, but
in my test VM with systemd automatically activating the portal when it's
first accessed, it can take 800ms or so. Wait for it instead of falling
back after 200ms.
--- a/pidgin/gtkrequest.c Sun Apr 05 20:55:28 2020 +0100
+++ b/pidgin/gtkrequest.c Sun Apr 05 23:44:51 2020 +0100
@@ -1817,7 +1817,7 @@
g_dbus_message_set_body(msg, g_variant_builder_end(&b));
g_dbus_connection_send_message_with_reply(data->u.screenshare.dbus_connection, msg,
- 0, 200, NULL, NULL, request_completed_cb, data);
+ 0, 2000, NULL, NULL, request_completed_cb, data);
}
static GstElement *create_pipewiresrc_cb(PurpleMedia *media, const gchar *session_id,