[gnome-shell] extensionPrefs: Make app D-Bus-activatable
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] extensionPrefs: Make app D-Bus-activatable
- Date: Thu, 19 Mar 2020 14:35:10 +0000 (UTC)
commit 96e534796fb681ba07bec68bf5694b5aaf6bbd75
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Mar 8 22:38:47 2020 +0100
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(+)
---
diff --git a/js/extensionPrefs/data/meson.build b/js/extensionPrefs/data/meson.build
index 1a4b77ed87..c805ab62e6 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 2806c795e6..cd22f6adf0 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 0000000000..2150999cad
--- /dev/null
+++ b/js/extensionPrefs/data/org.gnome.Extensions.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=@app_id@
+Exec=@bindir@/@prgname@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]