[gnome-shell/benzea/systemd-user-units-with-extension-warning: 6/7] data: Add systemd service file for extension disabled warning



commit 837cab5778858e5f17f2b18b63e3916326918ce7
Author: Benjamin Berg <bberg redhat com>
Date:   Fri Aug 30 15:45:34 2019 +0200

    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

 data/gnome-shell-extensions-disabled-warning.service.in | 13 +++++++++++++
 data/gnome-shell-wayland.target                         |  2 ++
 data/gnome-shell-x11.target                             |  2 ++
 3 files changed, 17 insertions(+)
---
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 0000000000..041bc086d8
--- /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 37e1966d99..31619c2e5f 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 f4af2c8ddf..80b2bbfdc9 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


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