Skip to content

Commit

Permalink
Add WINDOWMANAGER env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fullaxx committed Jul 12, 2024
1 parent a3617b3 commit adcc342
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MAINTAINER Brett Kuskie <[email protected]>
# ------------------------------------------------------------------------------
# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
ENV WINDOWMANAGER openbox
ENV LANG C

# ------------------------------------------------------------------------------
Expand Down
16 changes: 11 additions & 5 deletions app/imagestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ if [ -n "${VNCUMASK}" ]; then
echo "umask ${VNCUMASK}" >> ${HOME}/.bashrc
fi

mkdir -p ${HOME}/.vnc ${HOME}/.config/{openbox,fbpanel}
# VNC configuration
mkdir -p ${HOME}/.vnc
install -m 0755 /usr/share/ubuntu-desktop/vnc/xstartup ${HOME}/.vnc/xstartup
install -m 0755 /usr/share/ubuntu-desktop/openbox/autostart ${HOME}/.config/openbox/autostart
install -m 0644 /usr/share/ubuntu-desktop/openbox/menu.xml ${HOME}/.config/openbox/menu.xml
install -m 0644 /usr/share/ubuntu-desktop/openbox/rc.xml ${HOME}/.config/openbox/rc.xml
install -m 0644 /usr/share/ubuntu-desktop/fbpanel/default ${HOME}/.config/fbpanel/default

# Openbox configuration
if [ "${WINDOWMANAGER}" == "openbox" ]; then
mkdir -p ${HOME}/.config/{openbox,fbpanel}
install -m 0755 /usr/share/ubuntu-desktop/openbox/autostart ${HOME}/.config/openbox/autostart
install -m 0644 /usr/share/ubuntu-desktop/openbox/menu.xml ${HOME}/.config/openbox/menu.xml
install -m 0644 /usr/share/ubuntu-desktop/openbox/rc.xml ${HOME}/.config/openbox/rc.xml
install -m 0644 /usr/share/ubuntu-desktop/fbpanel/default ${HOME}/.config/fbpanel/default
fi

0 comments on commit adcc342

Please sign in to comment.