forked from ahurac/dotfiles
16 lines
252 B
Text
16 lines
252 B
Text
|
#!/bin/sh -e
|
||
|
|
||
|
display="$(grep "$LOGNAME" /etc/tigervnc/vncserver.users | head -n 1 | awk -F '=' '{ print $1 }')"
|
||
|
echo "Using display: $display"
|
||
|
test -n "$display"
|
||
|
|
||
|
set -x
|
||
|
cd
|
||
|
exec \
|
||
|
screen \
|
||
|
-d \
|
||
|
-m \
|
||
|
vncserver \
|
||
|
"$display"
|
||
|
|