mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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')
|
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')
|
subdir('icons')
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -7,6 +7,7 @@ Exec=sysprof %u
|
|||||||
TryExec=sysprof
|
TryExec=sysprof
|
||||||
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
|
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
|
||||||
Icon=@APP_ID@
|
Icon=@APP_ID@
|
||||||
|
DBusActivatable=true
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|||||||
4
data/org.gnome.Sysprof.service.in
Normal file
4
data/org.gnome.Sysprof.service.in
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[D-BUS Service]
|
||||||
|
Name=@app_id@
|
||||||
|
Exec=@bindir@/sysprof --gapplication-service
|
||||||
|
|
||||||
Reference in New Issue
Block a user