Avoid D-Bus notification unit conflicts
This commit is contained in:
+6
-4
@@ -459,15 +459,17 @@ activate_dms() {
|
||||
return
|
||||
fi
|
||||
|
||||
if ! systemctl --user daemon-reload 2>/dev/null; then
|
||||
log "当前没有可用的 systemd 用户会话;DMS 将在下次 Niri 登录时启动"
|
||||
return
|
||||
fi
|
||||
systemctl --user disable --now waybar.service mako.service 2>/dev/null || true
|
||||
pkill -x waybar 2>/dev/null || true
|
||||
pkill -x mako 2>/dev/null || true
|
||||
pkill -x swaybg 2>/dev/null || true
|
||||
pkill -x swayidle 2>/dev/null || true
|
||||
systemctl --user reset-failed mako.service dms.service 2>/dev/null || true
|
||||
|
||||
if ! systemctl --user daemon-reload 2>/dev/null; then
|
||||
log "当前没有可用的 systemd 用户会话;DMS 将在下次 Niri 登录时启动"
|
||||
return
|
||||
fi
|
||||
systemctl --user enable dms.service
|
||||
|
||||
"$profile/bin/dms" auth resolve-lock --quiet >/dev/null 2>&1 || true
|
||||
|
||||
Reference in New Issue
Block a user