- commit
- 28eb224fd16a7ac3419f1d23e9d6628d22c3c143
- parent
- fa2b6a9248204e5cd2aab63c7858c1f3d679af9b
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-02-16 05:42
package and dbus activation
Diffstat
| A | PKGBUILD | 12 | ++++++++++++ |
| A | dbus.service | 4 | ++++ |
| M | notification_hub.py | 2 | ++ |
| A | systemd.service | 14 | ++++++++++++++ |
4 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
@@ -0,0 +1,12 @@
-1 1 pkgname='notification-hub'
-1 2 pkgver='0.0.0'
-1 3 pkgdesc='Distraction-free notification daemon for simple linux desktops'
-1 4 arch=('all')
-1 5 url='https://github.com/xi/notification-hub'
-1 6 license='MIT'
-1 7
-1 8 package() {
-1 9 install -Dm 755 notification_hub.py "$pkgdir/usr/bin/notification-hub"
-1 10 install -Dm 644 dbus.service "$pkgdir/usr/share/dbus-1/services/org.xi.notification-hub.service"
-1 11 install -Dm 644 systemd.service "$pkgdir/usr/lib/systemd/user/notification-hub.service"
-1 12 }
diff --git a/dbus.service b/dbus.service
@@ -0,0 +1,4 @@ -1 1 [D-BUS Service] -1 2 Name=org.freedesktop.Notifications -1 3 Exec=/usr/bin/notification-hub -1 4 SystemdService=notification-hub.service
diff --git a/notification_hub.py b/notification_hub.py
@@ -1,3 +1,5 @@ -1 1 #!/usr/bin/env python3 -1 2 1 3 import sys 2 4 3 5 import gi
diff --git a/systemd.service b/systemd.service
@@ -0,0 +1,14 @@ -1 1 [Unit] -1 2 Description=Notification hub -1 3 PartOf=graphical-session.target -1 4 -1 5 [Service] -1 6 Type=dbus -1 7 BusName=org.freedesktop.Notifications -1 8 ExecStart=/usr/bin/notification-hub -1 9 MemoryDenyWriteExecute=yes -1 10 NoNewPrivileges=yes -1 11 ProtectSystem=strict -1 12 ProtectHome=yes -1 13 PrivateNetwork=yes -1 14 PrivateTmp=yes