sway: dejar que elogind genere el entorno
This commit is contained in:
parent
87ff6fb35f
commit
ba5e1ee91c
1 changed files with 0 additions and 7 deletions
|
@ -3,12 +3,6 @@ if ! "$REMOTE" && test "$(tty)" = /dev/tty1
|
||||||
end
|
end
|
||||||
|
|
||||||
function run_sway
|
function run_sway
|
||||||
doas mkdir -p /run/user
|
|
||||||
doas chmod 755 /run/user
|
|
||||||
set -gx XDG_RUNTIME_DIR "/run/user/$(id -u)"
|
|
||||||
doas mkdir -p "$XDG_RUNTIME_DIR"
|
|
||||||
doas chmod 700 "$XDG_RUNTIME_DIR"
|
|
||||||
doas chown "$(id -u):$(id -g)" "$XDG_RUNTIME_DIR"
|
|
||||||
mkdir -p "$HOME/.local/share/sway"
|
mkdir -p "$HOME/.local/share/sway"
|
||||||
set log "$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
set log "$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
||||||
|
|
||||||
|
@ -18,7 +12,6 @@ function run_sway
|
||||||
end
|
end
|
||||||
|
|
||||||
exec env \
|
exec env \
|
||||||
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
|
||||||
XDG_CURRENT_DESKTOP=sway \
|
XDG_CURRENT_DESKTOP=sway \
|
||||||
XDG_SESSION_DESKTOP=sway \
|
XDG_SESSION_DESKTOP=sway \
|
||||||
dbus-run-session sway >"$log" 2>&1
|
dbus-run-session sway >"$log" 2>&1
|
||||||
|
|
Loading…
Reference in a new issue