forked from ahurac/dotfiles
15 lines
252 B
Bash
Executable file
15 lines
252 B
Bash
Executable file
#!/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"
|
|
|