aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service.c9
1 files changed, 8 insertions, 1 deletions
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();