[gnome-shell/benzea/systemd-user-units-with-extension-warning: 5/5] data: Add desktop autostart file for extension warning



commit ff1b411f741718db08e5d9b32de0a299ebe5da24
Author: Benjamin Berg <bberg redhat com>
Date:   Sat Apr 20 00:19:17 2019 +0200

    data: Add desktop autostart file for extension warning
    
    Adding this file allows gnome-session to trigger the warning after it
    disabled extensions in the non-systemd case.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/695

 data/gnome-shell-extensions-disabled-warning.desktop.in.in | 12 ++++++++++++
 data/meson.build                                           | 13 +++++++++++++
 2 files changed, 25 insertions(+)
---
diff --git a/data/gnome-shell-extensions-disabled-warning.desktop.in.in 
b/data/gnome-shell-extensions-disabled-warning.desktop.in.in
new file mode 100644
index 0000000000..796ccb06a7
--- /dev/null
+++ b/data/gnome-shell-extensions-disabled-warning.desktop.in.in
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Type=Application
+Name=GNOME Shell Extensions Disabled Warning
+Comment=Warning shown if extensions were disabled due to a failure
+Exec=@bindir@/gnome-shell-extension-prefs --disabled-warning
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=gnome-shell
+X-GNOME-Bugzilla-Component=general
+X-GNOME-Bugzilla-Version=@VERSION@
+OnlyShowIn=GNOME;
+AutostartCondition=if-exists gnome-shell-extensions-disabled-warning
+X-GNOME-HiddenUnderSystemd=@systemd_hidden@
diff --git a/data/meson.build b/data/meson.build
index 88a61765f5..d789091533 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -31,6 +31,19 @@ foreach desktop_file : desktop_files
   )
 endforeach
 
+i18n.merge_file('desktop',
+  input: configure_file(
+    input: 'gnome-shell-extensions-disabled-warning.desktop.in.in',
+    output: 'gnome-shell-extensions-disabled-warning.desktop.in',
+    configuration: desktopconf
+  ),
+  output: 'gnome-shell-extension-disabled-warning.desktop',
+  po_dir: po_dir,
+  install: true,
+  install_dir: autostartdir,
+  type: 'desktop'
+)
+
 serviceconf = configuration_data()
 serviceconf.set('libexecdir', libexecdir)
 foreach service_file : service_files


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]