From 2d00da0e18d6dcce5c2c9d9cc6b4abb2182d4bfc Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 15 May 2022 18:13:07 -0400 Subject: [PATCH] Implemented link to /tmp for Haiku --- bin/sshyp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/sshyp b/bin/sshyp index 42e801b..3bab011 100755 --- a/bin/sshyp +++ b/bin/sshyp @@ -119,7 +119,9 @@ def tweak(): # runs configuration wizard Path(path.expanduser('~/.password-pasture')).mkdir(0o700, parents=True, exist_ok=True) Path(path.expanduser('~/.config/sshyp/devices')).mkdir(0o700, parents=True, exist_ok=True) if not Path(f"{path.expanduser('~/.config/sshyp/tmp')}").exists(): - if Path("/data/data/com.termux").exists(): + if uname()[0] == 'Haiku': + system(f"ln -s /tmp {path.expanduser('~/.config/sshyp/tmp')}") + elif Path("/data/data/com.termux").exists(): system(f"ln -s '/data/data/com.termux/files/usr/tmp' {path.expanduser('~/.config/sshyp/tmp')}") else: system(f"ln -s /dev/shm {path.expanduser('~/.config/sshyp/tmp')}")