# List of users to start Chrome Remote Desktop for.
CHROME_REMOTING_USERS=''
-# Default resolutions to make available to the session.
-#CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES='1600x1200,3840x1600'
+# Options to pass to chrome-remote-desktop. Only the -s option is interesting.
+# Note: In order to support resizing, you need to:
+# (1) Apply this patch to xorg-server (via epatch_user):
+# http://patchwork.freedesktop.org/patch/51428/
+# (2) Create a symlink /usr/bin/Xvfb-randr -> Xvfb
+#OPTIONS='-s 1600x1200 -s 3840x1600'
# Directory to use for storing log files.
#CHROME_REMOTE_DESKTOP_LOG_DIR='/var/log'
local user ret msg log
msg=$1; shift
- set -- -- "$@"
- [ "${CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES+set}" = "set" ] \
- && set -- -e CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES="${CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES}" "$@"
: ${CHROME_REMOTE_DESKTOP_LOG_DIR:=/var/log}
for user in ${CHROME_REMOTING_USERS} ; do
-u "${user}" \
-x "${CRD}" \
-e "CHROME_REMOTE_DESKTOP_LOG_FILE=${log}" \
+ -- \
+ ${OPTIONS} \
"$@"
eend $?
- : $(( ret += $? ))
+ : $(( ret |= $? ))
done
return ${ret}