Skip to content

Commit 99cd9c9

Browse files
committed
BUGFIX: Blank X window
Manually export environment variables in run script
1 parent 4d7f37b commit 99cd9c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

run.sh

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ function foregroundStart {
1616

1717
#Run C9vnc in foreground
1818

19+
#Set environment variables
20+
export XDG_RUNTIME_DIR=/tmp/C9VNC
21+
export DISPLAY=:99.0
22+
1923
#Back up existing conf
2024
cp ${HOME}/.config/supervisord.conf ${HOME}/.config/supervisord.conf.bak
2125
#Modify supervisord.conf
@@ -31,6 +35,10 @@ function foregroundStart {
3135
function daemonStart {
3236
echo -e "Starting c9vnc daemon"
3337
{
38+
#Set environment variables
39+
export XDG_RUNTIME_DIR=/tmp/C9VNC
40+
export DISPLAY=:99.0
41+
3442
#Run supervisord
3543
supervisord -c ${HOME}/.config/supervisord.conf
3644
}&> /dev/null

0 commit comments

Comments
 (0)