Bug#650368: gnome-do: Fails to start due to a bug in /usr/bin/gnome-do

November 29th, 2011 - 04:10 am ET by Roberto Paleari | Report spam
This is a multi-part MIME message sent by reportbug.


MIME-Version: 1.0

Package: gnome-do
Version: 0.8.5-1
Severity: important

A bug in the startup script /usr/bin/gnome-do prevents gnome-do from starting: the script never executes the actual gnome-do binary.

See the attached patch for a quick fix.

Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-do depends on:
ii dbus 1.4.16-1
ii gconf2 3.2.3-1
ii libc6 2.13-21
ii libgconf2.0-cil 2.24.2-1
ii libglib2.0-0 2.30.2-4
ii libglib2.0-cil 2.12.10-2
ii libgnome-keyring1.0-cil 1.0.0-3
ii libgnome-vfs2.0-cil 2.24.2-1
ii libgnome2.24-cil 2.24.2-1
ii libgnomedesktop2.20-cil 2.26.0-6
ii libgtk2.0-0 2.24.8-2
ii libgtk2.0-cil 2.12.10-2
ii libmono-addins0.2-cil 0.6.2-1
ii libmono-cairo2.0-cil 2.6.7-5
ii libmono-corlib2.0-cil 2.6.7-5
ii libmono-posix2.0-cil 2.6.7-5
ii libmono-system2.0-cil 2.6.7-5
ii libndesk-dbus-glib1.0-cil 0.4.1-3
ii libndesk-dbus1.0-cil 0.6.0-5
ii libnotify0.4-cil 0.4.0~r3032-4
ii libnunit2.4-cil 2.4.7+dfsg-6
ii librsvg2-common 2.34.2-1
ii libx11-6 2:1.4.4-4
ii mono-runtime 2.6.7-5
ii procps 1:3.3.0-1
ii xdg-utils 1.1.0~rc1-3

Versions of packages gnome-do recommends:
ii gnome-do-plugins 0.8.4-2

gnome-do suggests no packages.


MIME-Version: 1.0

a/gnome-do 2011-11-29 09:40:20.177589048 +0100
+++ b/gnome-do 2011-11-29 09:39:30.170602627 +0100
@@ -17,7 +17,8 @@ dbus-send --session --type=method_call -
'/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
+pgrep -u "`id -u`" '^gnome-do$' >/dev/null
+if [ "$?" -eq "1" ] ; then
/usr/bin/cli "$GNOME_DO_EXE" "$@"
fi
while [ "$?" -eq "20" ]; do




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 Roberto Paleari
November 29th, 2011 - 05:00 am ET | Report spam
Hi Iain,

Thank you for your reply.

On Tue, Nov 29, 2011 at 10:39 AM, Iain Lane wrote:
I think you are hitting bug #649591. If you change the -u to -U then it
should work again.



You are right: it should be "-U" and not "-u". However, I don't think
this solves the issue: if gnome-do is *not* running, despite of using
"-u" or "-U", pgrep still returns 1 ("No processes matched"), thus
gonme-do is not run.

Your patch made me look at /usr/bin/gnome-do though, and it looks like
there's incorrect  logic there

 if pgrep -u "`id -u`" '^gnome-do$' >/dev/null; then
     /usr/bin/cli "$GNOME_DO_EXE" "$@"
 fi

Looks like it will launch gnome-do if it sees it is already running.



Exactly!

It seems like gnome-do properly supports only having a single instance,
so it'd probably be easiest if this check gets removed in favour of just
always running Do.exe. So I'm cc-ing RAOF to see if he wants to do this.



Great, thank you for your help!

Cheers,
Roberto

Roberto Paleari



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics