aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-09-02 06:33:26 +0200
committerRobert Tari <robert@tari.in>2023-09-02 06:33:26 +0200
commit7b04435790a35031434e9fabdb7911778a00498b (patch)
tree1c55a4d13a766abd7f96ca510556ca2f04f09249
parent3ddb5324ae9742c0c59aea6339a8ab1ee0c20585 (diff)
parentbc6df2034b1fea39f326e8e9264f23e88b2dbeef (diff)
downloadayatana-indicator-power-7b04435790a35031434e9fabdb7911778a00498b.tar.gz
ayatana-indicator-power-7b04435790a35031434e9fabdb7911778a00498b.tar.bz2
ayatana-indicator-power-7b04435790a35031434e9fabdb7911778a00498b.zip
Merge branch 'sunweaver-pr/no-rda-checks-on-lomiri'
Attributes GH PR #84: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/84
-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();