Clock applet crash if evolution is not installed

Bug #58428 reported by Qishuai Liu
4
Affects Status Importance Assigned to Milestone
GNOME Panel
Fix Released
Medium
gnome-panel (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-panel

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

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

Thanks for your bug. I've forwarded it upstream: http://bugzilla.gnome.org/show_bug.cgi?id=353809

Changed in gnome-panel:
assignee: nobody → desktop-bugs
importance: Untriaged → Low
status: Unconfirmed → Confirmed
Changed in gnome-panel:
status: Unknown → Unconfirmed
Revision history for this message
Qishuai Liu (lqs) wrote :

In gnome-panel-2.15.92/applets/clock/clock.c:

static void
calendar_day_activated (ClockData *cd,
                        GtkCalendar *calendar)
{
        unsigned int day;
        unsigned int month;
        unsigned int year;
        char *command_line;
        GError *error;
        gtk_calendar_get_date (GTK_CALENDAR (cd->calendar),
                               &year, &month, &day);
        command_line = g_strdup_printf ("evolution "
                                        "calendar:///?startdate=%.4d%.2d%.2d",
                                        year, month + 1, day);
        //============================================
        error = NULL; // <--- ADD THIS LINE TO SOLVE THIS BUG!!!
        //============================================
        if (!gdk_spawn_command_line_on_screen (gtk_widget_get_screen (cd->calendar),
                                               command_line, &error)) {
                g_printerr ("Cannot launch calendar: %s\n", error->message);
                g_error_free (error);
        }
        g_free (command_line);
}

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

Probably a duplicate of http://bugzilla.gnome.org/show_bug.cgi?id=340622 upstream then (it has a similar patch)

Changed in gnome-panel:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the issue:

 gnome-panel (2.16.0-0ubuntu1) edgy; urgency=low
 .
   * New upstream version:
     Panel:
     - Plug leaks
     - Don't (wrongly) modify the laucnher when creating the editor
     Clock Applet:
     - Fix crash when double-clicking on the calendar (Ubuntu: #58428)
     Misc:
     - Add 24x24 versions of the icons
   * debian/patches/12_autoconf.patch:
     - updated

Changed in gnome-panel:
status: Confirmed → Fix Released
Changed in gnome-panel:
status: Confirmed → Fix Released
Changed in gnome-panel:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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