diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-05-27 23:05:40 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-05-27 23:05:40 +0200 |
commit | f57a1661073fd84dd0c76b1763c70686934b66e7 (patch) | |
tree | 8f279895ada452d66572880fdc54518c8a59d1db | |
parent | dab59821f7a96e0167181d9e8bfeccd7205fc6ce (diff) | |
download | ayatana-indicator-power-f57a1661073fd84dd0c76b1763c70686934b66e7.tar.gz ayatana-indicator-power-f57a1661073fd84dd0c76b1763c70686934b66e7.tar.bz2 ayatana-indicator-power-f57a1661073fd84dd0c76b1763c70686934b66e7.zip |
src/service.c: A session is local, if it is not remote. This avoids detecting e.g. chroots as remote sessions.
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 69de20b..a87c60e 100644 --- a/src/service.c +++ b/src/service.c @@ -1194,7 +1194,7 @@ indicator_power_service_init (IndicatorPowerService * self) #ifdef RDA_ENABLED if (!ayatana_common_utils_is_lomiri()) { - p->bLocal = rda_session_is_local (); + p->bLocal = !rda_session_is_remote (); } else #endif /* RDA_ENABLED */ |