mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2026-03-16 00:00:48 +08:00
swap alpine openbox to chromium (#267)
This commit is contained in:
parent
6361590a4f
commit
1c692be139
@ -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 \
|
||||
obconf-qt \
|
||||
st \
|
||||
util-linux-misc && \
|
||||
@ -25,6 +25,9 @@ RUN \
|
||||
ln -s \
|
||||
/usr/bin/st \
|
||||
/usr/bin/x-terminal-emulator && \
|
||||
sed -i \
|
||||
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
|
||||
/usr/share/applications/chromium.desktop && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/config/.cache \
|
||||
|
||||
@ -17,6 +17,7 @@ RUN \
|
||||
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
|
||||
echo "**** install packages ****" && \
|
||||
apk add --no-cache \
|
||||
chromium \
|
||||
firefox \
|
||||
obconf-qt \
|
||||
st \
|
||||
@ -25,6 +26,9 @@ RUN \
|
||||
ln -s \
|
||||
/usr/bin/st \
|
||||
/usr/bin/x-terminal-emulator && \
|
||||
sed -i \
|
||||
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
|
||||
/usr/share/applications/chromium.desktop && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/config/.cache \
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<openbox_menu xmlns="http://openbox.org/3.4/menu">
|
||||
<menu id="root-menu" label="MENU">
|
||||
<item label="Terminal" icon="/usr/share/pixmaps/xterm-color_48x48.xpm"><action name="Execute"><command>/usr/bin/st</command></action></item>
|
||||
<item label="Firefox" icon="/usr/share/icons/hicolor/48x48/apps/firefox.png"><action name="Execute"><command>/usr/bin/firefox</command></action></item>
|
||||
<item label="Chromium" icon="/usr/share/icons/hicolor/48x48/apps/chromium.png"><action name="Execute"><command>/usr/bin/chromium</command></action></item>
|
||||
<item label="OBConf" icon="/usr/share/icons/hicolor/48x48/apps/obconf-qt.png"><action name="Execute"><command>/usr/bin/obconf-qt</command></action></item>
|
||||
</menu>
|
||||
</openbox_menu>
|
||||
|
||||
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