sync webtop logic

This commit is contained in:
thelamer 2024-01-17 12:57:32 -08:00 committed by Ryan Kuba
parent b39ebf38f4
commit abb5ac1223
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa /startpulse.sh &
/usr/bin/icewm > /dev/null 2>&1
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa /startpulse.sh &
setterm blank 0
setterm powerdown 0
/usr/bin/icewm-session > /dev/null 2>&1

View File

@ -2,8 +2,13 @@
BIN=/usr/bin/chromium-real
# 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
if grep -q 'Seccomp:\t0' /proc/1/status; then
${BIN} --password-store=basic "$@"
else
${BIN} --password-store=basic --no-sandbox --test-type "$@"