aboutsummaryrefslogtreecommitdiff
path: root/startup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'startup.sh')
-rwxr-xr-xstartup.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/startup.sh b/startup.sh
index 17cbe4a..bba1ef2 100755
--- a/startup.sh
+++ b/startup.sh
@@ -1,5 +1,7 @@
#!/bin/sh -
+set -x
+
export USER=root HOME=/root DISPLAY=:0 XAUTHORITY=$HOME/.Xauthority
mkdir -p $HOME/.vnc
@@ -8,7 +10,14 @@ chmod -R go= $HOME/.vnc
vncserver $DISPLAY -geometry 1280x768 -depth 16 -nolisten tcp
-#ratpoison
-icewm
+#ratpoison & wm=$!
+icewm & wm=$!
+
+waterfox --headless &
+waterfox=$!
+sleep 2
+kill -HUP $waterfox
+mv handlers.json /root/.waterfox/*.default/
+wait $wm
vncserver -kill $DISPLAY