mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 08:22:31 +01:00
feat: support xfce4
This commit is contained in:
parent
334325ec3c
commit
68887af903
3 changed files with 26 additions and 0 deletions
|
|
@ -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
6
flavors/xfce4.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
addon_packages:
|
||||
- vim-tiny
|
||||
- firefox
|
||||
- xfce4-terminal
|
||||
desktop: xfce4
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue