Unable to launch on startup

Bug #787070 reported by Dima Spivak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Google Voice Notifier
New
Undecided
Unassigned

Bug Description

Adding "gvoice-notifier" as an additional startup program in Ubuntu 11.04 doesn't launch the notifier. Running the command in a terminal after booting does, as does selecting it in the indicator menu, but one would hope there would be a way to automate this process. For what it's worth, I also experienced this bug in 10.10 and no error messages are encountered.

Revision history for this message
Dima Spivak (dimaspivak) wrote :

Since it looks like this project might be abandoned, I threw together a quick patch that fixes this problem.

Basically, the trouble was that, when put into Startup Applications, gvoice-notifier would try to load Google's login page through Python's urllib2 library before the network connection was available, leading to an error being thrown which would halt execution of the program. To get around this, I've added a simple loop that tries to load the page and, if it's unsuccessful, waits 5 seconds, and then tries again.

To install under Ubuntu, just cd into the directory in which you save the patch and type:

sudo patch /usr/bin/gvoice-notifier -i startup.patch

-Dima

Revision history for this message
Dima Spivak (dimaspivak) wrote :
Revision history for this message
inverser (resrevni) wrote :

Thank you for the patch! It works great.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.