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'), +)