diff --git a/docs/cyberbro/README.md b/docs/cyberbro/README.md index 0b28bfc..8522702 100644 --- a/docs/cyberbro/README.md +++ b/docs/cyberbro/README.md @@ -35,7 +35,6 @@ CONFIG_PAGE_ENABLED=true You can pass these environment variables to your Cyberbro Workspace with **Docker Run Config Override (JSON)** in your Workspace settings. -![image](https://github.com/user-attachments/assets/33125248-31e8-4315-a772-e0546a8be659) > Note: if you set `GUI_ENABLED_ENGINES` to `""` then all engines will be enabled in the GUI. \ > By default, all **free engines** will be enabled in the GUI. diff --git a/src/ubuntu/install/cyberbro/custom_startup.sh b/src/ubuntu/install/cyberbro/custom_startup.sh index 6c45bff..5644538 100644 --- a/src/ubuntu/install/cyberbro/custom_startup.sh +++ b/src/ubuntu/install/cyberbro/custom_startup.sh @@ -18,19 +18,6 @@ fi # Make GUI_ENABLED_ENGINES an environment variable export GUI_ENABLED_ENGINES -options=$(getopt -o gau: -l go,assign,url: -n "$0" -- "$@") || exit -eval set -- "$options" - -while [[ $1 != -- ]]; do - case $1 in - -g|--go) GO='true'; shift 1;; - -a|--assign) ASSIGN='true'; shift 1;; - -u|--url) OPT_URL=$2; shift 2;; - *) echo "bad option: $1" >&2; exit 1;; - esac -done -shift - # Process non-option arguments. for arg; do echo "arg! $arg" @@ -43,25 +30,6 @@ if [ -f /opt/VirtualGL/bin/vglrun ] && [ ! -z "${KASM_EGL_CARD}" ] && [ ! -z "${ START_COMMAND="/opt/VirtualGL/bin/vglrun -d ${KASM_EGL_CARD} $START_COMMAND" fi -kasm_exec() { - if [ -n "$OPT_URL" ] ; then - URL=$OPT_URL - elif [ -n "$1" ] ; then - URL=$1 - fi - - # Since we are execing into a container that already has the browser running from startup, - # when we don't have a URL to open we want to do nothing. Otherwise a second browser instance would open. - if [ -n "$URL" ] ; then - /usr/bin/filter_ready - /usr/bin/desktop_ready - bash ${MAXIMIZE_SCRIPT} & - $START_COMMAND $ARGS $OPT_URL - else - echo "No URL specified for exec command. Doing nothing." - fi -} - kasm_startup() { if [ -n "$KASM_URL" ] ; then @@ -92,8 +60,4 @@ kasm_startup() { fi } -if [ -n "$GO" ] || [ -n "$ASSIGN" ] ; then - kasm_exec -else - kasm_startup -fi \ No newline at end of file +kasm_startup \ No newline at end of file