mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-07-19 19:54:54 +02:00
swap alpine mate to chromium (#271)
This commit is contained in:
parent
9530e28a24
commit
1658d8f30d
@ -17,7 +17,7 @@ RUN \
|
||||
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
|
||||
echo "**** install packages ****" && \
|
||||
apk add --no-cache \
|
||||
firefox \
|
||||
chromium \
|
||||
mate-desktop-environment \
|
||||
util-linux-misc && \
|
||||
echo "**** mate tweaks ****" && \
|
||||
@ -28,6 +28,9 @@ RUN \
|
||||
rm -f \
|
||||
/etc/xdg/autostart/mate-power-manager.desktop \
|
||||
/etc/xdg/autostart/mate-screensaver.desktop && \
|
||||
sed -i \
|
||||
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
|
||||
/usr/share/applications/chromium.desktop && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
@ -17,7 +17,7 @@ RUN \
|
||||
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
|
||||
echo "**** install packages ****" && \
|
||||
apk add --no-cache \
|
||||
firefox \
|
||||
chromium \
|
||||
mate-desktop-environment \
|
||||
util-linux-misc && \
|
||||
echo "**** mate tweaks ****" && \
|
||||
@ -28,6 +28,9 @@ RUN \
|
||||
rm -f \
|
||||
/etc/xdg/autostart/mate-power-manager.desktop \
|
||||
/etc/xdg/autostart/mate-screensaver.desktop && \
|
||||
sed -i \
|
||||
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
|
||||
/usr/share/applications/chromium.desktop && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
15
root/usr/bin/chromium
Executable file
15
root/usr/bin/chromium
Executable file
@ -0,0 +1,15 @@
|
||||
#! /bin/bash
|
||||
|
||||
BIN=/usr/bin/chromium-browser
|
||||
|
||||
# Cleanup
|
||||
if ! pgrep chromium > /dev/null;then
|
||||
rm -f $HOME/.config/chromium/Singleton*
|
||||
fi
|
||||
|
||||
# Run normally on privved containers or modified un non priv
|
||||
if grep -q 'Seccomp:.0' /proc/1/status; then
|
||||
${BIN} --no-first-run --password-store=basic "$@"
|
||||
else
|
||||
${BIN} --no-first-run --password-store=basic --no-sandbox --test-type "$@"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user