Add a D-Bus service to automatically start the daemon when needed

This patch adds a D-Bus service file, which makes the notification-daemon
start automatically when a user send a notification (for example, using
notify-send(1)).
This commit is contained in:
Mateusz Piotrowski 2020-10-05 14:02:07 +00:00
parent c33defafcc
commit c2bf703955
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=551495
3 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= notification-daemon
PORTVERSION= 3.20.0
PORTERVISION= 1
CATEGORIES= deskutils gnome
MASTER_SITES= GNOME
@ -23,4 +24,11 @@ GNU_CONFIGURE= yes
PORTSCOUT= limitw:1,even
SUB_FILES= org.freedesktop.Notifications.service
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/dbus-1/services
${INSTALL_DATA} ${WRKDIR}/org.freedesktop.Notifications.service \
${STAGEDIR}${PREFIX}/share/dbus-1/services
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
# $FreeBSD$
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=%%PREFIX%%/libexec/notification-daemon

View File

@ -1,5 +1,6 @@
libexec/notification-daemon
share/applications/notification-daemon.desktop
share/dbus-1/services/org.freedesktop.Notifications.service
share/locale/af/LC_MESSAGES/notification-daemon.mo
share/locale/an/LC_MESSAGES/notification-daemon.mo
share/locale/ar/LC_MESSAGES/notification-daemon.mo