diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-02-05 18:12:46 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-02-05 18:20:49 +0100 |
commit | b18f3c709dacd72c5527c4f6474faaeb7554d7f8 (patch) | |
tree | d91630a48785538990adbddd0cc0d1a139a3b473 /src/service.c | |
parent | db07408b9120c8eb91e5635d033d8195db76d247 (diff) | |
download | ayatana-indicator-session-b18f3c709dacd72c5527c4f6474faaeb7554d7f8.tar.gz ayatana-indicator-session-b18f3c709dacd72c5527c4f6474faaeb7554d7f8.tar.bz2 ayatana-indicator-session-b18f3c709dacd72c5527c4f6474faaeb7554d7f8.zip |
src/service.c: Use !rda_session_is_remote() rather than rda_session_is_local().
When using rda_session_is_local() you really get the answer you are
asking for: the desktop session runs on a local XDG_SEAT.
However, we'd rather like to know: is the session remote. If not let's
treat what we are in as local.
This popped up in build chrooted environments where XDG_SEAT is
undefined, but still: we are definitely not in a remote session.
Fixes: https://github.com/AyatanaIndicators/ayatana-indicator-session/issues/90
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 6922f04..d2ba34d 100644 --- a/src/service.c +++ b/src/service.c @@ -1424,7 +1424,7 @@ indicator_session_service_init (IndicatorSessionService * self) self->priv = p; #if RDA_ENABLED - self->priv->bLocal = rda_session_is_local (); + self->priv->bLocal = !rda_session_is_remote (); #else self->priv->bLocal = true; #endif /* RDA_ENABLED */ |