Commit f4d02c0d authored by Arnaud B.'s avatar Arnaud B. Committed by Michael Catanzaro

Make D-Bus activatable.

parent 991b39f7
Pipeline #176038 passed with stage
in 2 minutes and 25 seconds
......@@ -59,3 +59,17 @@ install_data('icons/hicolor/scalable/@0@.svg'.format(application_id),
install_data('icons/hicolor/symbolic/@0@-symbolic.svg'.format(application_id),
install_dir: join_paths(icondir, 'symbolic', 'apps')
)
# Make D-Bus activatable
service_conf = configuration_data()
service_conf.set('bindir', join_paths(prefix, bindir))
service = 'org.gnome.Sudoku.service'
configure_file (
input: service + '.in',
output: service,
install: true,
install_dir: join_paths(prefix, datadir, 'dbus-1', 'services'),
configuration: service_conf
)
......@@ -11,3 +11,4 @@ Type=Application
Categories=GNOME;GTK;Game;LogicGame;
StartupNotify=true
Version=1.0
DBusActivatable=true
[D-BUS Service]
Name=org.gnome.Sudoku
Exec=@bindir@/gnome-sudoku --gapplication-service
......@@ -22,9 +22,10 @@ add_project_arguments([
gnome = import('gnome')
i18n = import('i18n')
datadir = get_option('datadir')
localedir = get_option('localedir')
prefix = get_option('prefix')
datadir = get_option('datadir')
localedir = get_option('localedir')
prefix = get_option('prefix')
bindir = get_option('bindir')
glib_version = '2.40.0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment