sway: arreglar permisos de /run/user
arregla problema con GDM
This commit is contained in:
parent
b24f95237b
commit
5371deb664
1 changed files with 4 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
|||
if ! "$REMOTE" && test "$(tty)" = /dev/tty1
|
||||
doas mkdir -p /run/user
|
||||
doas chmod 777 /run/user
|
||||
doas chmod 755 /run/user
|
||||
set -gx XDG_RUNTIME_DIR "/run/user/$(id -u)"
|
||||
mkdir -p "$XDG_RUNTIME_DIR"
|
||||
chmod 700 "$XDG_RUNTIME_DIR"
|
||||
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"
|
||||
set log "$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
||||
|
||||
|
|
Loading…
Reference in a new issue