diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c index bcc3950..69de20b 100644 --- a/src/service.c +++ b/src/service.c @@ -22,7 +22,9 @@ #include <glib/gi18n.h> #include <gio/gio.h> -#include <rda/rda.h> +#ifdef RDA_ENABLED +# include <rda/rda.h> +#endif /* RDA_ENABLED */ #include <ayatana/common/utils.h> #include "brightness.h" #include "dbus-shared.h" @@ -1189,11 +1191,14 @@ indicator_power_service_init (IndicatorPowerService * self) p->cancellable = g_cancellable_new (); +#ifdef RDA_ENABLED if (!ayatana_common_utils_is_lomiri()) { p->bLocal = rda_session_is_local (); } - else { + else +#endif /* RDA_ENABLED */ + { p->bLocal = TRUE; } p->settings = g_settings_new ("org.ayatana.indicator.power"); |