Skip to content

Commit 68887af

Browse files
committed
feat: support xfce4
1 parent 334325e commit 68887af

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

Dockerfile.j2

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ RUN apt update \
5555
&& apt autoremove -y \
5656
&& rm -rf /var/lib/apt/lists/*
5757
{%endif%}
58+
{%if desktop == "xfce4" %}
59+
RUN apt update \
60+
&& apt install -y --no-install-recommends --allow-unauthenticated \
61+
xubuntu-desktop \
62+
&& apt autoclean -y \
63+
&& apt autoremove -y \
64+
&& rm -rf /var/lib/apt/lists/*
65+
{%endif%}
5866
# Additional packages require ~600MB
5967
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
6068

flavors/xfce4.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
addon_packages:
3+
- vim-tiny
4+
- firefox
5+
- xfce4-terminal
6+
desktop: xfce4

image/etc/supervisor/conf.d/supervisord.conf.j2

+12
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ user=%USER%
5858
environment=DISPLAY=":1",HOME="%HOME%",USER="%USER%"
5959
{% endif %}
6060

61+
{% if desktop == "xfce4" %}
62+
[group:x]
63+
programs=xvfb,lxpanel,x11vnc,novnc
64+
65+
[program:lxpanel]
66+
priority=15
67+
directory=%HOME%
68+
command=/usr/bin/startxfce4
69+
user=%USER%
70+
environment=DISPLAY=":1",HOME="%HOME%",USER="%USER%"
71+
{% endif %}
72+
6173
[program:xvfb]
6274
priority=10
6375
command=/usr/local/bin/xvfb.sh

0 commit comments

Comments
 (0)