1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-15 01:29:28 +00:00

data: Add D-Bus service file

Heavily inspired by
cf329d0a05

Fixes #464
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-06-20 05:26:16 +02:00
parent 5782b2b46d
commit 654664799b
4 changed files with 19 additions and 0 deletions

View file

@ -20,6 +20,19 @@ desktop_file = i18n.merge_file(
install_dir : join_paths(sysconfdir, 'xdg/autostart')
)
# DBus service
service_data = configuration_data()
service_data.set('bindir', full_bindir)
service_file = 'org.gnome.Calls.service'
configure_file(
input : service_file + '.in',
output : service_file,
configuration : service_data,
install : true,
install_dir : full_servicedir,
)
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,

View file

@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.gnome.Calls
Exec=@bindir@/gnome-calls --daemon

View file

@ -2,6 +2,7 @@
/usr/bin
/usr/lib
/usr/share/applications
/usr/share/dbus-1
/usr/share/glib-2.0
/usr/share/icons
/usr/share/locale

View file

@ -41,7 +41,9 @@ top_include = include_directories('.')
prefix = get_option('prefix')
builddir = meson.current_build_dir()
full_bindir = join_paths(prefix, get_option('bindir'))
libdir = get_option('libdir')
full_servicedir = join_paths(prefix, get_option('datadir'), 'dbus-1', 'services')
localedir = get_option('localedir')
full_localedir = join_paths(prefix, localedir)
full_calls_plugin_libdir = join_paths(prefix, libdir, calls_name, 'plugins')