From 098114f4c871ce6f7d6f88436919281c6910d2ee Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 30 Aug 2019 15:45:34 +0200 Subject: [PATCH] data: Add systemd service file for extension disabled warning Show the extension preferences UI right after login if the last session failed and extensions have been disabled because of this. This adds the files for the systemd session case. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/695 --- ...ome-shell-extensions-disabled-warning.service.in | 13 +++++++++++++ data/gnome-shell-wayland.target | 2 ++ data/gnome-shell-x11.target | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 data/gnome-shell-extensions-disabled-warning.service.in diff --git a/data/gnome-shell-extensions-disabled-warning.service.in b/data/gnome-shell-extensions-disabled-warning.service.in new file mode 100644 index 000000000..041bc086d --- /dev/null +++ b/data/gnome-shell-extensions-disabled-warning.service.in @@ -0,0 +1,13 @@ +[Unit] +Description=Warn about GNOME Shell extensions being disabled +ConditionPathExists=%E/gnome-shell-extensions-disabled-warning + +Requisite=gnome-session.target +After=gnome-session.target + +[Service] +Type=simple +ExecStartPre=-/bin/rm %E/gnome-shell-extensions-disabled-warning +ExecStart=@bindir@/gnome-shell-extension-prefs --disabled-warning +Restart=no + diff --git a/data/gnome-shell-wayland.target b/data/gnome-shell-wayland.target index 37e1966d9..31619c2e5 100644 --- a/data/gnome-shell-wayland.target +++ b/data/gnome-shell-wayland.target @@ -8,3 +8,5 @@ Before=gnome-session-initialized.target Requires=gnome-shell-wayland.service After=gnome-shell-wayland.service + +Wants=gnome-shell-extensions-disabled-warning.service diff --git a/data/gnome-shell-x11.target b/data/gnome-shell-x11.target index f4af2c8dd..80b2bbfdc 100644 --- a/data/gnome-shell-x11.target +++ b/data/gnome-shell-x11.target @@ -8,3 +8,5 @@ Before=gnome-session-initialized.target Requires=gnome-shell-x11.service After=gnome-shell-x11.service + +Wants=gnome-shell-extensions-disabled-warning.service