summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2023-07-20 02:56:44 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 21:17:29 +0200
commit589976911c4153200409a803f0b24cb5f818e38a (patch)
tree3471ef7c7b6191d9d6a9e9646c4197db0e3e9642
parent685e6c3f471c226b43464212238731c7a86dbe99 (diff)
downloadlibrda-589976911c4153200409a803f0b24cb5f818e38a.tar.gz
librda-589976911c4153200409a803f0b24cb5f818e38a.tar.bz2
librda-589976911c4153200409a803f0b24cb5f818e38a.zip
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.
-rw-r--r--src/rda.c4
1 files changed, 3 insertions, 1 deletions
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 <rda.h>
#include <rda_ogon.h>
#include <rda_x2go.h>
+#include <rda_protocol.h>
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;