diff options
author | Robert Tari <robert@tari.in> | 2023-09-02 06:33:26 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2023-09-02 06:33:26 +0200 |
commit | 7b04435790a35031434e9fabdb7911778a00498b (patch) | |
tree | 1c55a4d13a766abd7f96ca510556ca2f04f09249 | |
parent | 3ddb5324ae9742c0c59aea6339a8ab1ee0c20585 (diff) | |
parent | bc6df2034b1fea39f326e8e9264f23e88b2dbeef (diff) | |
download | ayatana-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.c | 9 |
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(); |