configparser crash with indicator-datetime-preferences.desktop

Bug #1048834 reported by Brian Murray
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Indicator Date and Time
Fix Released
Medium
Ken VanDine
indicator-datetime (Ubuntu)
Fix Released
Medium
Ken VanDine
Quantal
Fix Released
Medium
Ken VanDine

Bug Description

As seen at https://errors.ubuntu.com/bucket/?id=%2Fusr%2Fshare%2Fapport%2Fapport-gtk%3Aconfigparser.DuplicateOptionError%3A%3Cmodule%3E%3Arun_argv%3Arun_crashes%3Arun_crash%3Aui_present_report_details%3Aget_desktop_entry%3Aread%3A_read
apport which is using configparser is crashing with the file /usr/share/applications/indicator-datetime-preferences.desktop.

The error follows:

configparser.DuplicateOptionError: While reading from /usr/share/applications/indicator-datetime-preferences.desktop [line 18]: option 'x-ubuntu-gettext-domain' in section 'Desktop Entry' already exists

Looking at that file there are in fact two 'x-ubuntu-gettext-domain' options set.

Related branches

Revision history for this message
Brian Murray (brian-murray) wrote :

I'd think is is causing an error when people try and use apport to report a bug about indicator-datetime.

Revision history for this message
Omer Akram (om26er) wrote :

More of a packaging bug I guess.

Changed in indicator-datetime (Ubuntu):
importance: Undecided → Medium
Changed in indicator-datetime:
importance: Undecided → Medium
assignee: nobody → Charles Kerr (charlesk)
Changed in indicator-datetime (Ubuntu):
assignee: nobody → Charles Kerr (charlesk)
no longer affects: indicator-datetime
Revision history for this message
Charles Kerr (charlesk) wrote :

Hmm, I'm not sure where this error is being introduced. indicator-datetime-preferences.desktop starts off as a template file:

> http://bazaar.launchpad.net/~indicator-applet-developers/indicator-datetime/trunk.12.10/view/head:/data/indicator-datetime-preferences.desktop.in

Which uses INTLTOOL_DESKTOP_RULE (http://bazaar.launchpad.net/~intltool/intltool/trunk/view/head:/intltool.m4#L75) to generate the .desktop file, which looks like this:

> http://bazaar.launchpad.net/~ubuntu-desktop/indicator-datetime/ubuntu/view/head:/data/indicator-datetime-preferences.desktop

which is identical to the one in /usr/share/applications except the latter adds the two X-Ubuntu-Gettext-Domain lines.

Omer Akram (om26er)
Changed in indicator-datetime (Ubuntu Quantal):
assignee: Charles Kerr (charlesk) → Ken VanDine (ken-vandine)
Omer Akram (om26er)
Changed in indicator-datetime (Ubuntu Quantal):
milestone: none → ubuntu-12.10-beta-2
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-datetime - 12.10.0-0ubuntu2

---------------
indicator-datetime (12.10.0-0ubuntu2) quantal; urgency=low

  * data/indicator-datetime-preferences.desktop.in
    - Removed stray lines from the desktop file, it's causing duplicate
      X-Ubuntu-Gettext-Domain to get added. (LP: #1048834)
 -- Ken VanDine <email address hidden> Tue, 11 Sep 2012 15:38:10 -0400

Changed in indicator-datetime (Ubuntu Quantal):
status: New → Fix Released
Charles Kerr (charlesk)
Changed in indicator-datetime:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Ken VanDine (ken-vandine)
milestone: none → 12.10.1
Charles Kerr (charlesk)
Changed in indicator-datetime:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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