-
Notifications
You must be signed in to change notification settings - Fork 12
Troubleshooting
joshua stein edited this page Apr 27, 2022
·
1 revision
It can be helpful to run sdorfehs under a virtual X11 screen to retain control over your normal development environment and see stdout/stderr output from your compiled sdorfehs
binary.
Using Xephyr can help create a new virtual screen.
This script also sets a different escape
sequence of C-b
to avoid clashing with the normal default.
#!/bin/sh
export XDG_CONFIG_HOME=`mktemp -d`
Xephyr :1 -screen 2500x1500 &
export DISPLAY=:1
sleep 1
xrandr --output default --primary
cat > $XDG_CONFIG_HOME/sdorfehs/config <<END
escape C-b
END
./sdorfehs &
SPID=$!
# not sure why this has to run after sdorfehs starts
xrdb < ~/.Xdefaults
wait $SPID
kill %1