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