pmaports/luna/luna-webappmanager/remove-systemd.patch

36 lines
991 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 23d7631..1163299 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,7 +46,7 @@ find_package(PkgConfig "0.22" REQUIRED)
pkg_check_modules(GLIB2 glib-2.0 REQUIRED)
pkg_check_modules(LS2 luna-service2 REQUIRED)
-pkg_check_modules(SYSTEMD libsystemd REQUIRED)
+pkg_check_modules(SYSTEMD libsystemd OPTIONAL)
pkg_check_modules(PBNJSON_C pbnjson_c REQUIRED)
pkg_check_modules(LUNA_SYSMGR_COMMON LunaSysMgrCommon REQUIRED)
pkg_check_modules(LUNA_PREFS luna-prefs REQUIRED)
diff --git a/src/main.cpp b/src/main.cpp
index c79782d..fe48ae4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -21,7 +21,6 @@
#include <QtGlobal>
#include <glib.h>
-#include <systemd/sd-daemon.h>
#include <LocalePreferences.h>
@@ -140,9 +139,6 @@ int main(int argc, char **argv)
LocalePreferences::instance();
luna::SystemTime::instance();
- if (option_systemd)
- sd_notify(0, "READY=1");
-
webAppManager.exec();
cleanup: