Merge branch 'dbus-activatable' into 'master'

Add D-Bus service file

See merge request GNOME/sysprof!138
This commit is contained in:
Christian Hergert
2025-04-10 18:38:15 +00:00
3 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -7,6 +7,7 @@ Exec=sysprof %u
TryExec=sysprof
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=@APP_ID@
DBusActivatable=true
StartupNotify=true
Terminal=false
Type=Application

View File

@ -0,0 +1,4 @@
[D-BUS Service]
Name=@app_id@
Exec=@bindir@/sysprof --gapplication-service