#!/bin/sh

ExecIfExecutable()
{
	local f="$1"
	shift
	[ -x "$f" ] && exec "$f" "$@"
}

/usr/bin/xsetroot -cursor_name watch

if [ -e ~/.icewm/menu ]; then
  update-menus&
fi

ExecIfExecutable /usr/bin/icewm-session "$@"

# /usr/bin/xsetroot -cursor_name X_cursor
# ExecIfExecutable /usr/bin/apt-indicator --autostart
