From ff1b411f741718db08e5d9b32de0a299ebe5da24 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Sat, 20 Apr 2019 00:19:17 +0200 Subject: [PATCH] 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 --- ...-shell-extensions-disabled-warning.desktop.in.in | 12 ++++++++++++ data/meson.build | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 data/gnome-shell-extensions-disabled-warning.desktop.in.in 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 000000000..796ccb06a --- /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 88a61765f..d78909153 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