3
SCRIPT_PATH=`dirname $0`
4
SCRIPT_PATH=`cd $SCRIPT_PATH; pwd`
6
if [ "x$SCRIPT_PATH" = "x@abs_srcdir@/bin/Debug" ] ||
7
[ "x$SCRIPT_PATH" = "x@abs_srcdir@" ] ; then
8
echo "*** Running uninstalled ***"
9
GNOME_DO_EXE="@abs_srcdir@/bin/Debug/Do.exe"
11
GNOME_DO_EXE="@expanded_libdir@/@PACKAGE@/Do.exe"
14
# Send the dbus Summon signal right away for fastest response if
15
# Do is already running.
16
dbus-send --session --type=method_call --dest='org.gnome.Do' \
17
'/org/gnome/Do/Controller' 'org.gnome.Do.Controller.Summon'
19
# If Do is not running, run it.
20
if pgrep -u "`id -u`" '^gnome-do$' >/dev/null; then
21
mono "$GNOME_DO_EXE" "$@"
23
while [ "$?" -eq "20" ]; do
24
mono "$GNOME_DO_EXE" "$@"