GNOME Bugzilla – Bug 340622
Clock applet crashes when double-clicking a date while evolution startup fails
Last modified: 2007-01-06 09:22:58 UTC
The clock applet hangs when double-clicking a date and something in the invocation of evolution fails. When closing the clock applet and opening it again, the applet crashes. This is due to the usage of a GError pointer that is not checked before use. A patch for this will get attached.
Created attachment 64804 [details] [review] Checks GError pointer before usage
I don't think this is the correct fix. If the call fails, the error should be set (according to the doc). I'm not sure it's always possible since we're using g_return_val_if_fail() in glib/gtk+ too...
Then the bug is in the lib that exports the call, as that one should set the error object. This patch prevents the clock applet from crashing, but it should be able to display an error message about a missing evolution-2.6 binary.
*** Bug 353809 has been marked as a duplicate of this bug. ***
Similar Ubuntu bug: https://launchpad.net/distros/ubuntu/+source/gnome-panel/+bug/58428 "If evolution is not installed, when double click a day in the clock applet, gnome-panel will crash. Steps to reproduce: 1. sudo apt-get remove evolution 2. Click the the clock applet in the panel, it will show a calendar 3. Double-click a day ..."
Just initialize the variable `error' before calling gdk_spawn_command_line_on_screen. No need to check it after the call.
Good catch, it was not initialized.
Created attachment 72181 [details] [review] Proposed patch
I committed the error = NULL; part. The other part will go later.
*ping* vincent: you set the patch at bug 340622 to accepted-commit_after_freeze on 2006-09-04 - can you please commit it now? :-)