#!/bin/execlineb -P s6-envdir env importas -i -u vnc_port vnc_port importas -i USER USER backtick -Ein this { awk "BEGIN{ d=ENVIRON[\"DISPLAY\"]; gsub(/:/,\"\",d); print \"xsession.\" d \".\" ENVIRON[\"USER\"\] }" } s6-tcpserver -1 127.0.0.1 ${vnc_port} if { s6-sudo /run/cmd.s link ssh.${USER} $this run/vnc.${vnc_port} } s6-ipcclient /run/inbox/ssh.${USER}/run/vnc.${vnc_port} s6-ioconnect -0167