Avoid D-Bus notification unit conflicts
This commit is contained in:
@@ -4,8 +4,7 @@ PartOf=graphical-session.target
|
|||||||
After=graphical-session.target
|
After=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=dbus
|
Type=simple
|
||||||
BusName=org.freedesktop.Notifications
|
|
||||||
Environment=PATH=%h/.local/bin:%h/.local/state/niri-beyond-glass/nix-profile/bin:/usr/local/bin:/usr/bin:/bin
|
Environment=PATH=%h/.local/bin:%h/.local/state/niri-beyond-glass/nix-profile/bin:/usr/local/bin:/usr/bin:/bin
|
||||||
ExecStart=%h/.local/state/niri-beyond-glass/nix-profile/bin/dms run --session
|
ExecStart=%h/.local/state/niri-beyond-glass/nix-profile/bin/dms run --session
|
||||||
ExecReload=/usr/bin/pkill -USR1 -x dms
|
ExecReload=/usr/bin/pkill -USR1 -x dms
|
||||||
|
|||||||
+6
-4
@@ -459,15 +459,17 @@ activate_dms() {
|
|||||||
return
|
return
|
||||||
fi
|
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
|
systemctl --user disable --now waybar.service mako.service 2>/dev/null || true
|
||||||
pkill -x waybar 2>/dev/null || true
|
pkill -x waybar 2>/dev/null || true
|
||||||
pkill -x mako 2>/dev/null || true
|
pkill -x mako 2>/dev/null || true
|
||||||
pkill -x swaybg 2>/dev/null || true
|
pkill -x swaybg 2>/dev/null || true
|
||||||
pkill -x swayidle 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
|
systemctl --user enable dms.service
|
||||||
|
|
||||||
"$profile/bin/dms" auth resolve-lock --quiet >/dev/null 2>&1 || true
|
"$profile/bin/dms" auth resolve-lock --quiet >/dev/null 2>&1 || true
|
||||||
|
|||||||
Reference in New Issue
Block a user