Awesome man, it works! I couldn’t get my script started through org.mate.desktop.session.required-components though, nothing happened, so I just cleared the panel variable and added my script as a Startup Application. Here’s what I ended up with:
#!/bin/sh
N=0
while [ $N -lt 100 ]; do
if pgrep compiz >/dev/null; then
break
fi
sleep 0.1
((N++))
done
while true; do
sleep 1
mate-panel
done
I wanted faster discovery of the compiz process hence only 100ms sleep in the first loop, also I wanted timeout (the N variable). Furthermore, once the compiz process is found, I want to make sure it is truly up and running, hence the 1sec delay before starting the mate-panel. Lastly I want the mate-panel to re-spawn if it is somehow killed, hence the second loop.
Thanks!