Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions root/usr/bin/chromium-browser
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,9 @@ if ! pgrep chromium > /dev/null;then
rm -f $HOME/.config/chromium/Singleton*
fi

# Disable GPU without Nvidia
if which nvidia-smi; then
DISABLE_GPU=""
else
DISABLE_GPU="--disable-gpu"
# Wayland check
if pgrep sway > /dev/null 2>&1; then
WAYLAND="--ozone-platform=wayland"
fi

# Run normally on privved containers or modified un non priv
if grep -q 'Seccomp:.0' /proc/1/status; then
${BIN} --password-store=basic ${DISABLE_GPU} "$@"
else
${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@"
fi
${BIN} --password-store=basic ${WAYLAND} --no-sandbox --test-type "$@"