diff --git a/Dockerfile b/Dockerfile index 72dec548..d9c1cc2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/* diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index a262a542..dc8102d4 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -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/* diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium new file mode 100755 index 00000000..f4adcab8 --- /dev/null +++ b/root/usr/bin/chromium @@ -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