swap alpine icewm to chromium (#268)

This commit is contained in:
Ryan Kuba 2024-09-26 14:08:50 +00:00 committed by GitHub
parent 1b0d346856
commit 003b3c0df7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 2 deletions

View File

@ -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 \
icewm \
st \
util-linux-misc && \
@ -29,6 +29,9 @@ RUN \
ln -s \
/usr/bin/st \
/usr/bin/xterm && \
sed -i \
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
/usr/share/applications/chromium.desktop && \
echo "**** theme ****" && \
rm -Rf /usr/share/icewm/themes/default && \
curl -s \

View File

@ -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 \
icewm \
st \
util-linux-misc && \
@ -29,6 +29,9 @@ RUN \
ln -s \
/usr/bin/st \
/usr/bin/xterm && \
sed -i \
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
/usr/share/applications/chromium.desktop && \
echo "**** theme ****" && \
rm -Rf /usr/share/icewm/themes/default && \
curl -s \

15
root/usr/bin/chromium Executable file
View 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