mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
Add D-Bus service file
And mark the application as D-Bus activatable. This allows application launchers to activate it via D-Bus.
This commit is contained in:
@ -41,5 +41,17 @@ if get_option('gtk') and get_option('libsysprof')
|
||||
install_dir: join_paths(datadir, 'applications')
|
||||
)
|
||||
|
||||
# D-Bus service file.
|
||||
dbusconf = configuration_data()
|
||||
dbusconf.set('app_id', app_id)
|
||||
dbusconf.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
|
||||
configure_file(
|
||||
input: 'org.gnome.Sysprof.service.in',
|
||||
output: '@0@.service'.format(app_id),
|
||||
configuration: dbusconf,
|
||||
install: true,
|
||||
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services'),
|
||||
)
|
||||
|
||||
subdir('icons')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user