From b18f3c709dacd72c5527c4f6474faaeb7554d7f8 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 5 Feb 2024 18:12:46 +0100 Subject: 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 --- src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3