zprofile: Crear XDG_RUNTIME_DIR

This commit is contained in:
Cat /dev/Nulo 2022-04-05 13:46:44 -03:00
parent 011ec1b725
commit 227161c1a6

View file

@ -1,8 +1,14 @@
source ~/.profile source ~/.profile
if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
doas mkdir -p /run/user
doas chmod 777 /run/user
XDG_RUNTIME_DIR="/run/user/$(id -u)"
mkdir -p "$XDG_RUNTIME_DIR"
chmod 700 "$XDG_RUNTIME_DIR"
mkdir -p "$HOME/.local/share/sway" mkdir -p "$HOME/.local/share/sway"
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log" log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
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