Skip to content

Commit

Permalink
remote-desktop: ConnectToEIS is not a Notify method
Browse files Browse the repository at this point in the history
This is use to determined whether a method uses a request or a call.

ConnectToEIS is a call, not a request, otherwise the handler will crash
handle_connect_to_eis() calling acquire_session_from_call().
  • Loading branch information
ofourdan authored and whot committed Nov 28, 2022
1 parent 32f0dc3 commit 90d13aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xdg-desktop-portal.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ method_needs_request (GDBusMethodInvocation *invocation)
}
else if (strcmp (interface, "org.freedesktop.portal.RemoteDesktop") == 0)
{
if (strstr (method, "Notify") == method)
if (strstr (method, "Notify") == method || strcmp (method, "ConnectToEIS") == 0)
return FALSE;
else
return TRUE;
Expand Down

0 comments on commit 90d13aa

Please sign in to comment.