mirror of
https://github.com/linuxserver/docker-rdesktop.git
synced 2026-02-20 06:16:43 +08:00
sync webtop logic
This commit is contained in:
parent
904a8af3d3
commit
9364287c15
@ -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
|
||||
|
||||
@ -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 "$@"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user