extensionPrefs: Make app D-Bus-activatable

This is the preferred way of launching applications nowadays.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1081
This commit is contained in:
Florian Müllner 2020-03-08 22:38:47 +01:00 committed by Florian Müllner
parent 3ee878491b
commit 96e534796f
3 changed files with 12 additions and 0 deletions

View File

@ -26,5 +26,13 @@ i18n.merge_file('desktop',
type: 'desktop'
)
configure_file(
input: app_id + '.service.in',
output: app_id + '.service',
configuration: desktopconf,
install: true,
install_dir: servicedir,
)
subdir('icons')
subdir('metainfo')

View File

@ -5,5 +5,6 @@ Name=Extensions
Icon=@app_id@
Comment=Configure GNOME Shell Extensions
Exec=@bindir@/@prgname@ %u
DBusActivatable=true
Categories=GNOME;GTK;
OnlyShowIn=GNOME;

View File

@ -0,0 +1,3 @@
[D-BUS Service]
Name=@app_id@
Exec=@bindir@/@prgname@