diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-12-15 20:27:55 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-12-15 20:27:55 +0100 |
commit | 59f1574888865b4f0d0b14af76817a7c5fc5d111 (patch) | |
tree | 9b165708018df6286637774fec71f789080fbf0a /src/main.cpp | |
parent | 796525b933045a6477f57a60aff394cdd5f62a32 (diff) | |
parent | 260817c0b15a1bf209ffd3c5d0b84c93eadd47ae (diff) | |
download | ayatana-indicator-display-59f1574888865b4f0d0b14af76817a7c5fc5d111.tar.gz ayatana-indicator-display-59f1574888865b4f0d0b14af76817a7c5fc5d111.tar.bz2 ayatana-indicator-display-59f1574888865b4f0d0b14af76817a7c5fc5d111.zip |
Merge branch 'tari01-pr/add-lomiri-features-flag'
Attribute GH PR #67: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/67
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index f145504..03c72c6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ /* * Copyright 2014 Canonical Ltd. + * Copyright 2022 Robert Tari * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published @@ -15,21 +16,23 @@ * * Authors: * Charles Kerr <charles.kerr@canonical.com> + * Robert Tari <robert@tari.in> */ #include <src/exporter.h> #include <src/rotation-lock.h> +#ifdef LOMIRI_FEATURES_ENABLED #include <src/greeter.h> #include <src/usb-manager.h> #include <src/usb-monitor.h> +#include <sys/stat.h> +#include <errno.h> +#endif #include <glib/gi18n.h> // bindtextdomain() #include <gio/gio.h> - #include <locale.h> -#include <sys/stat.h> -#include <errno.h> extern "C" { @@ -65,6 +68,8 @@ main(int /*argc*/, char** /*argv*/) exporters.push_back(exporter); } +#ifdef LOMIRI_FEATURES_ENABLED + gboolean bHasSocket = FALSE; if (ayatana_common_utils_is_lomiri()) @@ -92,6 +97,8 @@ main(int /*argc*/, char** /*argv*/) g_message("No /dev/socket/adbd socket found, skipping UsbManager"); } +#endif + // let's go! g_main_loop_run(loop); |