initial commit

This commit is contained in:
maurice
2025-10-25 14:30:39 +02:00
commit e99337652d
13 changed files with 205 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
mkdir /tmp/build
cd /tmp/build
git clone https://github.com/1player/host-spawn.git
cd host-spawn
chmod +x build.sh
./build.sh $(uname -m)
cd build
mv host-spawn* /usr/local/bin/host-spawn
rm -rf /tmp/build
cat << EOF > /usr/local/bin/spawn
#!/bin/bash
export DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/dbus.sock'
host-spawn -cwd "\${PWD/#\$HOME/\$HOST_HOME}" \
$([ "$(basename "\$0")" != "spawn" ] && echo "\$(basename "\$0")") "\$@"
EOF
chmod +x /usr/local/bin/spawn