Skip to content

Commit

Permalink
Improve run script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jichu4n committed Jul 3, 2024
1 parent 96e1be2 commit 04601a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ make basic_wm
# We need to specify the full path to Xephyr, as otherwise xinit will not
# interpret it as an argument specifying the X server to launch and will launch
# the default X server instead.
XEPHYR=$(whereis -b Xephyr | cut -f2 -d' ')
XEPHYR=$(whereis -b Xephyr | sed -E 's/^.*: ?//')
if [ -z "$XEPHYR" ]; then
echo "Xephyr not found, exiting"
exit 1
fi
xinit ./xinitrc -- \
"$XEPHYR" \
:100 \
Expand Down

0 comments on commit 04601a0

Please sign in to comment.