12 lines
297 B
Bash
Executable File
12 lines
297 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
script=$(realpath "$0")
|
|
scriptpath=$(dirname "$script")
|
|
|
|
script=$(mktemp)
|
|
exit_code=$(mktemp)
|
|
echo "$PWD/$@ && echo \$? > $exit_code" > $script
|
|
chmod +x $script
|
|
|
|
XAUTHORITY=$(mktemp) startx "$script" -- -xf86config "$scriptpath/xorg.conf" -logfile /dev/null
|
|
exit $(cat $exit_code) |