Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GTK+ Startup Notification Icon

In Gnome, whenever an application is started, the mouse cursor changes from normal to an activity indicator (a spinning wheel type thing on Ubuntu). Is there any way to inform Gnome (through some system call) when the application has finished launching so that the mouse cursor returns to normal without waiting for the usual timeout of 30 seconds to occur.

I have a program in Pythong using GTK+ that is showing the icon even after launching, so what system call do I make?

like image 955
Jibran Avatar asked Nov 05 '09 12:11

Jibran


1 Answers

Normally it happens automatically when you open the application's window.

It may be that the application's launcher just calls an already running instance, in that case it won't be automatically detected. The call you need then is this:

import gtk
gtk.gdk.notify_startup_complete()
like image 166
u0b34a0f6ae Avatar answered Oct 09 '22 03:10

u0b34a0f6ae