sync webtop logic

This commit is contained in:
thelamer 2024-01-17 12:45:32 -08:00 committed by Ryan Kuba
parent 904a8af3d3
commit 9364287c15
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,10 @@
#!/bin/bash
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa /startpulse.sh --start &
/usr/bin/startxfce4 > /dev/null 2>&1
setterm blank 0
setterm powerdown 0
if [ -f "${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml ]; then
sed -i \
'/use_compositing/c <property name="use_compositing" type="bool" value="false"/>' \
"${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
fi
/usr/bin/dbus-launch /usr/bin/startxfce4 --replace > /dev/null 2>&1

View File

@ -2,8 +2,13 @@
BIN=/usr/bin/chromium
# 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 "$@"