From 60234419c299137fd93d3464a207d32c19eeff3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 23 May 2022 11:54:50 +0200 Subject: [PATCH] data: Add DBus service file --- data/com.github.rafostar.Clapper.service.in | 3 +++ data/meson.build | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 data/com.github.rafostar.Clapper.service.in diff --git a/data/com.github.rafostar.Clapper.service.in b/data/com.github.rafostar.Clapper.service.in new file mode 100644 index 00000000..d8057116 --- /dev/null +++ b/data/com.github.rafostar.Clapper.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=@app_id@ +Exec=@bindir@/@app_id@ --gapplication-service diff --git a/data/meson.build b/data/meson.build index 44adfd86..e436efe5 100644 --- a/data/meson.build +++ b/data/meson.build @@ -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'), +)