Skip to content

Commit

Permalink
Setting DISPLAY variable for xpra in a way to also allow connecting w…
Browse files Browse the repository at this point in the history
…ith ssh -X (instead of xpra)
  • Loading branch information
Reto Gmür committed Mar 25, 2016
1 parent 6b80d3f commit 1613397
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ VOLUME /home/user

ENV DISPLAY=:100

RUN echo DISPLAY=$DISPLAY >> /etc/environment
ADD xpra-display /tmp/xpra-display
RUN echo "$(cat /tmp/xpra-display)\n$(cat /etc/bash.bashrc)" > /etc/bash.bashrc

# Start SSH anx Xpra
CMD mkdir -p /home/user/.ssh/ && chown -R user:user /home/user \
Expand Down
3 changes: 3 additions & 0 deletions xpra-display
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if [ -z "$DISPLAY" ]; then
export DISPLAY=:100
fi

0 comments on commit 1613397

Please sign in to comment.