#!/bin/bash cd /home/user eval `dbus-launch --sh-syntax --exit-with-session` /usr/bin/X :0.0 -br -audit 0 -nolisten tcp vt7 & export DISPLAY=:0.0 sleep 10 gnome-panel & compiz --replace & sleep 7 # Any other commands or apps