Skip to content

Commit 003b3c0

Browse files
authored
swap alpine icewm to chromium (#268)
1 parent 1b0d346 commit 003b3c0

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN \
1717
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
1818
echo "**** install packages ****" && \
1919
apk add --no-cache \
20-
firefox \
20+
chromium \
2121
icewm \
2222
st \
2323
util-linux-misc && \
@@ -29,6 +29,9 @@ RUN \
2929
ln -s \
3030
/usr/bin/st \
3131
/usr/bin/xterm && \
32+
sed -i \
33+
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
34+
/usr/share/applications/chromium.desktop && \
3235
echo "**** theme ****" && \
3336
rm -Rf /usr/share/icewm/themes/default && \
3437
curl -s \

Dockerfile.aarch64

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN \
1717
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
1818
echo "**** install packages ****" && \
1919
apk add --no-cache \
20-
firefox \
20+
chromium \
2121
icewm \
2222
st \
2323
util-linux-misc && \
@@ -29,6 +29,9 @@ RUN \
2929
ln -s \
3030
/usr/bin/st \
3131
/usr/bin/xterm && \
32+
sed -i \
33+
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
34+
/usr/share/applications/chromium.desktop && \
3235
echo "**** theme ****" && \
3336
rm -Rf /usr/share/icewm/themes/default && \
3437
curl -s \

root/usr/bin/chromium

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#! /bin/bash
2+
3+
BIN=/usr/bin/chromium-browser
4+
5+
# Cleanup
6+
if ! pgrep chromium > /dev/null;then
7+
rm -f $HOME/.config/chromium/Singleton*
8+
fi
9+
10+
# Run normally on privved containers or modified un non priv
11+
if grep -q 'Seccomp:.0' /proc/1/status; then
12+
${BIN} --no-first-run --password-store=basic "$@"
13+
else
14+
${BIN} --no-first-run --password-store=basic --no-sandbox --test-type "$@"
15+
fi

0 commit comments

Comments
 (0)