feat: support xfce4

This commit is contained in:
Doro Wu 2019-03-25 00:09:22 +08:00
parent 334325ec3c
commit 68887af903
No known key found for this signature in database
GPG key ID: 3F2E4F1C2D4A1AA4
3 changed files with 26 additions and 0 deletions

View file

@ -55,6 +55,14 @@ RUN apt update \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
{%endif%}
{%if desktop == "xfce4" %}
RUN apt update \
&& apt install -y --no-install-recommends --allow-unauthenticated \
xubuntu-desktop \
&& apt autoclean -y \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
{%endif%}
# Additional packages require ~600MB
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw

6
flavors/xfce4.yml Normal file
View file

@ -0,0 +1,6 @@
---
addon_packages:
- vim-tiny
- firefox
- xfce4-terminal
desktop: xfce4

View file

@ -58,6 +58,18 @@ user=%USER%
environment=DISPLAY=":1",HOME="%HOME%",USER="%USER%"
{% endif %}
{% if desktop == "xfce4" %}
[group:x]
programs=xvfb,lxpanel,x11vnc,novnc
[program:lxpanel]
priority=15
directory=%HOME%
command=/usr/bin/startxfce4
user=%USER%
environment=DISPLAY=":1",HOME="%HOME%",USER="%USER%"
{% endif %}
[program:xvfb]
priority=10
command=/usr/local/bin/xvfb.sh