~ubuntu-branches/ubuntu/trusty/gnome-do/trusty

« back to all changes in this revision

Viewing changes to .pc/02_use_cli_for_wrapper.diff/Do/gnome-do.in

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-03-26 11:12:21 UTC
  • mfrom: (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120326111221-1jk143fy37zxi3e4
Tags: 0.9-1
* New upstream version no longer uses deprecated internal glib headers.
  (Closes: #665537)
* [59fa37b9] Fix watch file
* [63486516] Imported Upstream version 0.9
* [8c636d84] Disable testsuite for now; requires running dbus and gconf daemons
* [e46de4b9] Remove inaccurate README.Source
* [4591d677] Add git-buildpackage configuration to default to pristine-tar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
SCRIPT_PATH=`dirname $0`
 
4
SCRIPT_PATH=`cd $SCRIPT_PATH; pwd`
 
5
 
 
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"
 
10
else
 
11
    GNOME_DO_EXE="@expanded_libdir@/@PACKAGE@/Do.exe"
 
12
fi
 
13
 
 
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'
 
18
 
 
19
# If Do is not running, run it.
 
20
if pgrep -u "`id -u`" '^gnome-do$' >/dev/null; then
 
21
        mono "$GNOME_DO_EXE" "$@"
 
22
fi
 
23
while [ "$?" -eq "20" ]; do
 
24
        mono "$GNOME_DO_EXE" "$@"
 
25
done