From e24530a0585595ff5674966c806585ac1916f5a1 Mon Sep 17 00:00:00 2001 From: Sergey Chupligin Date: Mon, 13 Jan 2020 17:33:40 +0300 Subject: [PATCH] [examples] Add service for notifycations --- examples/touch/org.nemomobile.notify.service | 3 +++ examples/touch/touch.pro | 5 ++++- rpm/qtquickcontrols-nemo.spec | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 examples/touch/org.nemomobile.notify.service diff --git a/examples/touch/org.nemomobile.notify.service b/examples/touch/org.nemomobile.notify.service new file mode 100644 index 0000000..d26946a --- /dev/null +++ b/examples/touch/org.nemomobile.notify.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.nemomobile.notify +Exec=/usr/bin/glacier-components diff --git a/examples/touch/touch.pro b/examples/touch/touch.pro index 685c612..121eae0 100644 --- a/examples/touch/touch.pro +++ b/examples/touch/touch.pro @@ -41,7 +41,10 @@ OTHER_FILES += $$qml.files desktop.path = /usr/share/applications desktop.files = glacier-components.desktop -INSTALLS += desktop target qml mainqml images +systemd_dbus_service.path = $${INSTALL_ROOT}/usr/share/dbus-1/services +systemd_dbus_service.files = org.nemomobile.notify.service + +INSTALLS += desktop target qml mainqml images systemd_dbus_service SOURCES += \ src/main.cpp diff --git a/rpm/qtquickcontrols-nemo.spec b/rpm/qtquickcontrols-nemo.spec index 7167e72..be8b142 100644 --- a/rpm/qtquickcontrols-nemo.spec +++ b/rpm/qtquickcontrols-nemo.spec @@ -78,4 +78,4 @@ desktop-file-install --delete-original \ %{_datadir}/glacier-components %{_datadir}/glacier-sizeview %{_datadir}/applications/*.desktop - +%{_datadir}/dbus-1/services/org.nemomobile.notify.service