From 227161c1a6043d2fb096772994a9bee08028e4a2 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 5 Apr 2022 13:46:44 -0300 Subject: [PATCH] zprofile: Crear XDG_RUNTIME_DIR --- .zprofile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zprofile b/.zprofile index ea5c7a0..751ba1f 100755 --- a/.zprofile +++ b/.zprofile @@ -1,8 +1,14 @@ source ~/.profile 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" log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log" exec env \ + XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \ XDG_CURRENT_DESKTOP=sway \ XDG_SESSION_DESKTOP=sway \ dbus-run-session sway >"$log" 2>&1