From 96e534796fb681ba07bec68bf5694b5aaf6bbd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 8 Mar 2020 22:38:47 +0100 Subject: [PATCH] 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 --- js/extensionPrefs/data/meson.build | 8 ++++++++ js/extensionPrefs/data/org.gnome.Extensions.desktop.in.in | 1 + js/extensionPrefs/data/org.gnome.Extensions.service.in | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 js/extensionPrefs/data/org.gnome.Extensions.service.in diff --git a/js/extensionPrefs/data/meson.build b/js/extensionPrefs/data/meson.build index 1a4b77ed8..c805ab62e 100644 --- a/js/extensionPrefs/data/meson.build +++ b/js/extensionPrefs/data/meson.build @@ -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') diff --git a/js/extensionPrefs/data/org.gnome.Extensions.desktop.in.in b/js/extensionPrefs/data/org.gnome.Extensions.desktop.in.in index 2806c795e..cd22f6adf 100644 --- a/js/extensionPrefs/data/org.gnome.Extensions.desktop.in.in +++ b/js/extensionPrefs/data/org.gnome.Extensions.desktop.in.in @@ -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; diff --git a/js/extensionPrefs/data/org.gnome.Extensions.service.in b/js/extensionPrefs/data/org.gnome.Extensions.service.in new file mode 100644 index 000000000..2150999ca --- /dev/null +++ b/js/extensionPrefs/data/org.gnome.Extensions.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=@app_id@ +Exec=@bindir@/@prgname@