mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-13 01:02:18 -04:00
(greeter): Trial fix for 30s auth delay & wireplumber state dir
This commit is contained in:
@@ -224,6 +224,19 @@ export XDG_STATE_HOME="$CACHE_DIR/.local/state"
|
||||
export XDG_DATA_HOME="$CACHE_DIR/.local/share"
|
||||
export XDG_CACHE_HOME="$CACHE_DIR/.cache"
|
||||
|
||||
# Propagate correct XDG dirs into the systemd user session so socket-activated
|
||||
# services (e.g. wireplumber) don't inherit HOME=/ from /etc/passwd.
|
||||
if command -v systemctl >/dev/null 2>&1; then
|
||||
systemctl --user set-environment \
|
||||
HOME="$CACHE_DIR" \
|
||||
XDG_STATE_HOME="$CACHE_DIR/.local/state" \
|
||||
XDG_DATA_HOME="$CACHE_DIR/.local/share" \
|
||||
XDG_CACHE_HOME="$CACHE_DIR/.cache" 2>/dev/null || true
|
||||
if systemctl --user is-active --quiet wireplumber.service 2>/dev/null; then
|
||||
systemctl --user restart wireplumber.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
# Keep greeter VT clean by default; callers can override via env or --debug.
|
||||
if [[ -z "${RUST_LOG:-}" ]]; then
|
||||
export RUST_LOG=warn
|
||||
@@ -336,6 +349,7 @@ misc {
|
||||
disable_hyprland_logo = true
|
||||
}
|
||||
|
||||
exec-once = systemctl --user import-environment HOME XDG_STATE_HOME XDG_DATA_HOME XDG_CACHE_HOME 2>/dev/null || true
|
||||
exec-once = sh -c "$QS_CMD; hyprctl dispatch exit"
|
||||
HYPRLAND_EOF
|
||||
COMPOSITOR_CONFIG="$TEMP_CONFIG"
|
||||
@@ -348,6 +362,7 @@ env = HOME,$CACHE_DIR
|
||||
env = XDG_STATE_HOME,$CACHE_DIR/.local/state
|
||||
env = XDG_DATA_HOME,$CACHE_DIR/.local/share
|
||||
env = XDG_CACHE_HOME,$CACHE_DIR/.cache
|
||||
exec-once = systemctl --user import-environment HOME XDG_STATE_HOME XDG_DATA_HOME XDG_CACHE_HOME 2>/dev/null || true
|
||||
exec-once = sh -c "$QS_CMD; hyprctl dispatch exit"
|
||||
HYPRLAND_EOF
|
||||
COMPOSITOR_CONFIG="$TEMP_CONFIG"
|
||||
|
||||
Reference in New Issue
Block a user