From 589976911c4153200409a803f0b24cb5f818e38a Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Thu, 20 Jul 2023 02:56:44 +0200 Subject: src/rda.c: add generic protocol support. We're setting the protocol to RDA_PROTOCOL_NONE for local sessions here. All the other detection is done in the remote technology's code. --- src/rda.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rda.c b/src/rda.c index 26fd3ac..f71a4aa 100644 --- a/src/rda.c +++ b/src/rda.c @@ -27,6 +27,7 @@ #include #include #include +#include guint remote_technology = REMOTE_TECHNOLOGY_UNCHECKED; @@ -46,6 +47,7 @@ rda_session_is_local(void) if (g_getenv("XDG_SEAT")) { remote_technology = REMOTE_TECHNOLOGY_NONE; + rda_protocol = RDA_PROTOCOL_NONE; return TRUE; } @@ -57,7 +59,7 @@ rda_session_is_remote (void) { if (rda_session_is_local()) - remote_technology = REMOTE_TECHNOLOGY_NONE; + return FALSE; #ifdef WITH_REMOTE_AWARENESS_X2GO else if (rda_session_is_x2go()) return TRUE; -- cgit v1.2.3