data: Add DBus service file

This commit is contained in:
Rafał Dzięgiel
2022-05-23 11:54:50 +02:00
parent c395c6b9be
commit 60234419c2
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
[D-BUS Service]
Name=@app_id@
Exec=@bindir@/@app_id@ --gapplication-service

View File

@@ -32,3 +32,15 @@ gnome.compile_resources('com.github.rafostar.Clapper.data',
install: true,
install_dir: pkgdatadir,
)
dbus_conf = configuration_data()
dbus_conf.set('app_id', meson.project_name())
dbus_conf.set('bindir', bindir)
configure_file(
input: 'com.github.rafostar.Clapper.service.in',
output: 'com.github.rafostar.Clapper.service',
configuration: dbus_conf,
install: true,
install_dir: join_paths(datadir, 'dbus-1', 'services'),
)