Skip to content

Commit f9647bf

Browse files
committed
Create a valid $XDG_RUNTIME_DIR for tmux
1 parent 5fbc0f2 commit f9647bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

workspace/services/desktop.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ let
2626
export XDG_DATA_DIRS="/run/dojo/share:''${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
2727
export XDG_CONFIG_DIRS="/run/dojo/etc/xdg:''${XDG_CONFIG_DIRS:-/etc/xdg}"
2828
29+
if ! test -d "$XDG_RUNTIME_DIR"; then
30+
mkdir -p "$XDG_RUNTIME_DIR"
31+
chown hacker:hacker "$XDG_RUNTIME_DIR"
32+
fi
33+
2934
auth_token="$(cat /run/dojo/var/auth_token)"
3035
password_interact="$(printf 'desktop-interact' | ${pkgs.openssl}/bin/openssl dgst -sha256 -hmac "$auth_token" | awk '{print $2}' | head -c 8)"
3136
password_view="$(printf 'desktop-view' | ${pkgs.openssl}/bin/openssl dgst -sha256 -hmac "$auth_token" | awk '{print $2}' | head -c 8)"

0 commit comments

Comments
 (0)