fixed bing-wallpaper
This commit is contained in:
@@ -5,6 +5,18 @@ set -euo pipefail
|
||||
|
||||
NOTIFY="/usr/bin/notify-send"
|
||||
|
||||
# Altlast-Erkennung: Falls der Timer GLOBAL enabled ist (Opt-out-Image
|
||||
# vor dem Opt-in-Umbau), greift kein User-Disable. Einmalig per sudo
|
||||
# aufraeumen, danach arbeitet der Toggle rein im User-Scope.
|
||||
if systemctl --global is-enabled --quiet bing-wallpaper.timer 2>/dev/null; then
|
||||
msg="Global aktiviert (Image-Altlast). Einmalig: sudo rm -f /etc/systemd/user/timers.target.wants/bing-wallpaper.timer && systemctl --user daemon-reload"
|
||||
echo "${msg}"
|
||||
if command -v "$NOTIFY" >/dev/null; then
|
||||
"$NOTIFY" "Bing-Wallpaper" "$msg" --app-name="Bing-Wallpaper" --icon=preferences-desktop-wallpaper || true
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if systemctl --user is-enabled --quiet bing-wallpaper.timer; then
|
||||
systemctl --user disable --now bing-wallpaper.timer
|
||||
msg="Bing-Wallpaper ausgeschaltet"
|
||||
|
||||
Reference in New Issue
Block a user