Install as a DBus service
This commit is contained in:
parent
09a14c1270
commit
a69254612c
@ -3,4 +3,11 @@
|
||||
install_data('org.gnome.Hammond.desktop', install_dir : datadir + '/applications')
|
||||
install_data('org.gnome.Hammond.appdata.xml', install_dir : datadir + '/appdata')
|
||||
install_data('org.gnome.Hammond.gschema.xml', install_dir: join_paths(datadir, 'glib-2.0', 'schemas'))
|
||||
meson.add_install_script('../../scripts/compile-gschema.py')
|
||||
|
||||
|
||||
configure_file(input: 'org.gnome.Hammond.service.in',
|
||||
output: 'org.gnome.Hammond.service',
|
||||
configuration: hammond_conf,
|
||||
install_dir: join_paths([datadir,'dbus-1/services']))
|
||||
|
||||
meson.add_install_script('../../scripts/compile-gschema.py')
|
||||
|
||||
@ -9,3 +9,4 @@ Type=Application
|
||||
StartupNotify=true
|
||||
Categories=AudioVideo;Audio;Video;
|
||||
Keywords=Podcast
|
||||
DBusActivatable=true
|
||||
|
||||
3
hammond-gtk/resources/org.gnome.Hammond.service.in
Normal file
3
hammond-gtk/resources/org.gnome.Hammond.service.in
Normal file
@ -0,0 +1,3 @@
|
||||
[D-BUS Service]
|
||||
Name=org.gnome.Hammond
|
||||
Exec=@BINDIR@/hammond --gapplication-service
|
||||
@ -16,6 +16,9 @@ hammond_version_micro = version_array[2].to_int()
|
||||
hammond_prefix = get_option('prefix')
|
||||
hammond_bindir = join_paths(hammond_prefix, get_option('bindir'))
|
||||
|
||||
hammond_conf = configuration_data()
|
||||
hammond_conf.set('BINDIR', hammond_bindir)
|
||||
|
||||
datadir = get_option('datadir')
|
||||
icondir = join_paths(datadir, 'icons')
|
||||
subdir('hammond-gtk/resources')
|
||||
@ -35,4 +38,4 @@ cargo_release = custom_target('cargo-build',
|
||||
|
||||
run_target('release', command: ['scripts/release.sh',
|
||||
meson.project_name() + '-' + hammond_version
|
||||
])
|
||||
])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user