mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
data: Add DBus service file
This commit is contained in:
3
data/com.github.rafostar.Clapper.service.in
Normal file
3
data/com.github.rafostar.Clapper.service.in
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[D-BUS Service]
|
||||||
|
Name=@app_id@
|
||||||
|
Exec=@bindir@/@app_id@ --gapplication-service
|
@@ -32,3 +32,15 @@ gnome.compile_resources('com.github.rafostar.Clapper.data',
|
|||||||
install: true,
|
install: true,
|
||||||
install_dir: pkgdatadir,
|
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'),
|
||||||
|
)
|
||||||
|
Reference in New Issue
Block a user