binary1ne/android-studio
0
1#!/bin/bash2set -e3 4# Start virtual display5Xvfb :0 -screen 0 $RESOLUTION &6 7# Start window manager8fluxbox &9 10# Start VNC server11x11vnc -display :0 -forever -passwd $VNC_PASSWORD -listen 0.0.0.0 -xkb -rfbport $VNC_PORT &12 13# If HOST_DISPLAY is set, connect to host display14if [ "$HOST_DISPLAY" == "1" ]; then15 echo "Using host display"16 exec android-studio17else18 echo "Starting with dummy display"19 exec android-studio20fi21 