gestito il riavvio automatico e la grafica windows

This commit is contained in:
tommal
2025-12-02 16:05:45 +01:00
parent 6388fc9e46
commit 67c4783b8c
697 changed files with 5568 additions and 91 deletions

View File

@@ -11,20 +11,41 @@ RUN mkdir -p /app /defaults \
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
firefox-esr gnumeric xdg-utils xdg-desktop-portal xdg-desktop-portal-gtk \
firefox-esr gnumeric xdg-utils \
python3-pyxdg ca-certificates \
shared-mime-info desktop-file-utils \
fonts-liberation fonts-dejavu-core \
libgtk2.0-0 libx11-6 libxext6 libxrender1 libxtst6 libxi6 \
libxrandr2 libxinerama1 libxcomposite1 libxss1 \
libgdk-pixbuf2.0-0 libpango1.0-0 libatk1.0-0 \
libcups2 libnss3 libwebkit2gtk-4.0-37 \
libcups2 libnss3 \
inotify-tools gosu \
openbox \
&& rm -rf /var/lib/apt/lists/*
# Install Windows-like themes
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
gtk2-engines-murrine \
gtk2-engines-pixbuf \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Windows 10 theme
RUN cd /usr/share/themes && \
git clone https://github.com/B00merang-Project/Windows-10.git && \
chown -R root:root /usr/share/themes/Windows-10
# Configure Windows 10 theme for abc user
RUN mkdir -p /home/abc/.config/gtk-2.0 && \
echo 'gtk-theme-name="Windows-10"' > /home/abc/.gtkrc-2.0 && \
echo 'gtk-icon-theme-name="gnome"' >> /home/abc/.gtkrc-2.0 && \
echo 'gtk-font-name="Segoe UI 9"' >> /home/abc/.gtkrc-2.0 && \
chown -R abc:abc /home/abc/.gtkrc-2.0 /home/abc/.config
# Copy Fiscality app into image and set owner to abc
COPY --chown=abc:abc Fiscality /app/Fiscality
RUN chmod -R a+rX /app/Fiscality \
RUN chmod -R a+rwX /app/Fiscality \
&& chmod a+x /app/Fiscality/Fiscality
# cont-init script to fix ownership at container start
@@ -156,6 +177,7 @@ RUN chmod 644 /usr/local/share/applications/firefox-pdf.desktop && \
RUN gosu abc xdg-mime default firefox-esr.desktop application/pdf || true
RUN gosu abc xdg-mime default firefox-pdf.desktop application/pdf || true
# Copy the autostart script to /defaults/ (LinuxServer base image uses this location)
COPY defaults/autostart /defaults/autostart
RUN chmod +x /defaults/autostart