Startup notification doesn't work when Pidgin is started without a window (only in the notification area).

Bug #94752 reported by Sebastian Sjoberg
12
Affects Status Importance Assigned to Milestone
gaim (Ubuntu)
Low
Unassigned
pidgin (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: gaim

When gaim is started without a window (only in the notification area) the startup notification seems to take way too long compared to when gaim is started with the buddy window open.

To reproduce: When gaim is running, close the buddy window and click quit from the menu in the notification area. Start gaim and see how long the "Starting Gaim Internet Messenger" and the busy mouse pointer is displayed.

This is on feisty.

Revision history for this message
Gabriel Patiño (gepatino) wrote :

In edgy it starts as fast as with the buddy list opened.

Are your packages up to date?

Changed in gaim:
assignee: nobody → gepatino
status: Unconfirmed → Needs Info
Revision history for this message
Sebastian Sjoberg (sebsjoberg) wrote :

It still starts as fast as when the buddy list is opened, it's just that the "Starting Gaim Internet Messenger" is displayed for way longer than it should, between 5 and 10 seconds. I believe the case here is that gnome or whatever it is doesn't get notified of gaim finished starting so instead the "busy cursor" and startup notification times out.

I assume I have my packages up to date, mind you I'm a total noob with ubuntu since I just changed distributions a week ago.

Revision history for this message
Gabriel Patiño (gepatino) wrote :

To update your packages, you can use the update-manager application (system/administration/update manager).

It would be helpfull to know if the program is reporting any error when launching it. To do this, open a terminal (Applications/Accesories/Terminal) and run gaim from inside the terminal.
If it reports any error (or even warnings) please add a comment to this bug pasting that information.

Changed in gaim:
assignee: gepatino → nobody
status: Needs Info → Unconfirmed
Revision history for this message
Stephen Cook (siti) wrote :

This bug is still in feisty.

To reproduce:
Right click on gaim in the notification tray and uncheck show buddy list.
Close gaim
Reopen it

This will only work if gaim does not open any windows, e.g. it does not join an irc server/channel.

The reason for this bug is that gtk+ automatically ends the startup notification when a window is created. In this case no window is created so it just sits there and finally times out.

To fix this:
gdk_notify_startup_complete(); must be called manually when gaim has done all the initiation. More information here: http://developer.gnome.org/doc/API/2.0/gdk/gdk-General.html#id2523523

Revision history for this message
Stephen Cook (siti) wrote :

Here is a patch for the issue. I just got rid of all the calls to startup notification (which was bad code because it is only available on X11. So I just made it a simple call to gdk_notify_startup_complete();.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug doesn't happen on my desktop

Changed in gaim:
importance: Undecided → Low
Revision history for this message
Stephen Cook (siti) wrote :

I have got another person to test it and he can reproduce it. It does exist.

Do you have the "Show system tray icon" on always?

(it might not be on by default)

Revision history for this message
Sebastien Bacher (seb128) wrote :

does it happen with a stock user and no account configured?

Revision history for this message
Stephen Cook (siti) wrote :

I can't test it because I am using my fixed version...

You will not reproduce the bug unless you have at least one account (most people do :P). The reason is because a dialog box pops up when you have no accounts...

Revision history for this message
Sebastien Bacher (seb128) wrote :

not confirming, the list is not display but there is no busy cursor neither, we need extra details on how to trigger it

Revision history for this message
Sebastian Sjoberg (sebsjoberg) wrote :

I don't have Ubuntu installed anymore so I can't test it again but I distinctly remember having a busy cursor. Extra details for my setup is: One msn account configured, make sure no window gets displayed when you start gaim (this is crucial) and you will se the bug. Anyway, I looked at sitis patch and it definitely looks like a cleanup.

Revision history for this message
Steven Ashley (steven-e-ashley) wrote :

I can reproduce this bug (feisty) using the instructions given.

Revision history for this message
Sebastien Bacher (seb128) wrote :

how do you start it? that doesn't happen when using the "run application" dialog, using the gnome-panel menu triggers the bug though

Revision history for this message
Stephen Cook (siti) wrote :

I start it using a gnome panel shortcut. Anything that uses the .desktop file and the startup notification will trigger this bug...

The run dialog just runs gaim (and other apps) without the startup notification.

Revision history for this message
Sebastian Sjoberg (sebsjoberg) wrote :

I can confirm that the same problem exists in pidgin in gutsy gibbon.

Revision history for this message
Steven Ashley (steven-e-ashley) wrote :

I can also confirm that the same problem exists in pidgin in gutsy gibbon.

Revision history for this message
Artem Popov (artfwo) wrote :

Confirming on Hardy (Pidgin)

Changed in gaim:
status: New → Confirmed
Changed in pidgin:
status: New → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

rejecting the gaim task, isn't maintained.

Changed in gaim:
status: Confirmed → Invalid
summary: - Startup notification doesn't work when gaim is started without a window
- (only in the notification area).
+ Startup notification doesn't work when Pidgin is started without a
+ window (only in the notification area).
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Patches