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