mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Merge branch 'dbus-activatable' into 'master'
Add D-Bus service file See merge request GNOME/sysprof!138
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
|
||||
|
||||
@ -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
|
||||
|
||||
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