From bc6df2034b1fea39f326e8e9264f23e88b2dbeef Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 31 Aug 2023 13:23:07 +0200 Subject: src/service.c: Ignore RDA's opinion when on Lomiri. Assume local session for Lomiri. Relates to: https://github.com/ArcticaProject/librda/issues/8 Relates to: https://gitlab.com/ubports/development/core/packaging/ayatana-indicators/ayatana-indicator-power/-/issues/7#note_1535612053 --- src/service.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index 3f3e3b0..bcc3950 100644 --- a/src/service.c +++ b/src/service.c @@ -1188,7 +1188,14 @@ indicator_power_service_init (IndicatorPowerService * self) self->priv = p; p->cancellable = g_cancellable_new (); - p->bLocal = rda_session_is_local (); + + if (!ayatana_common_utils_is_lomiri()) + { + p->bLocal = rda_session_is_local (); + } + else { + p->bLocal = TRUE; + } p->settings = g_settings_new ("org.ayatana.indicator.power"); p->brightness = indicator_power_brightness_new(); -- cgit v1.2.3