#!/bin/sh # Get pid of wicd tray applet if running pid=$(ps -ax 2>/dev/null | sed -n 's@^\([^ \t]*\)[\t]*.*tray\.py$@\1@p') cd /usr/share/wicd # Start the wicd tray applet if it's not running if [ -z ${pid} ] ; then ./tray.py 2> /dev/null & fi