Kupfer preferences window does not launch with broken desktop files

Bug #1089347 reported by donatello
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kupfer
Fix Committed
Undecided
Unassigned

Bug Description

I upgraded my Ubuntu from 12.04 to 12.10 recently. After the upgrade, Kupfer works normally for launching applications. However, if I try to open the Kupfer Preferences, nothing happens.

If it helps, I use the Xmonad window manager under Gnome.

When I open Kupfer from the command line with "kupfer --debug", when I try to open Preferences, I see the following Python stack trace in the terminal:

...
[kupfer.ui.browser] WindowController: Trying to register <Primary>grave to spawn kupfer.. success
D [kupfer.ui.session] SessionClient: Connected to session as client /org/gnome/SessionManager/Client15
D [kupfer.ui.browser] WindowController: finished lazy_setup
Traceback (most recent call last):
  File "/usr/share/kupfer/kupfer/ui/browser.py", line 1942, in mitem_handler
    callback(ui_ctx)
  File "/usr/share/kupfer/kupfer/kupferui.py", line 62, in show_preferences
    win = preferences.GetPreferencesWindowController()
  File "/usr/share/kupfer/kupfer/ui/preferences.py", line 880, in GetPreferencesWindowController
    _preferences_window = PreferencesWindowController()
  File "/usr/share/kupfer/kupfer/ui/preferences.py", line 99, in __init__
    checkautostart.set_active(self._get_should_autostart())
  File "/usr/share/kupfer/kupfer/ui/preferences.py", line 273, in _get_should_autostart
    dfile = desktop.DesktopEntry(autostart_file)
  File "/usr/lib/python2.7/dist-packages/xdg/DesktopEntry.py", line 25, in __init__
    self.parse(filename)
  File "/usr/lib/python2.7/dist-packages/xdg/DesktopEntry.py", line 33, in parse
    IniFile.parse(self, file, ["Desktop Entry", "KDE Desktop Entry"])
  File "/usr/lib/python2.7/dist-packages/xdg/IniFile.py", line 75, in parse
    raise ParsingError("Parsing error on key, group missing", filename)
xdg.Exceptions.ParsingError: ParsingError in file '/home/aditya/.config/autostart/kupfer.desktop', Parsing error on key, group missing
[kupfer.core.sources] PeriodicRescanner: Starting new campaign, interval 3 s
D [kupfer.plugin.trash] TrashSource: Loaded 1 items
D [kupfer.plugin.documents] RecentsSource: Loaded 34 items
...

Revision history for this message
donatello (aditya.mmy) wrote :

I just fixed the problem by manually deleting - /home/aditya/.config/autostart/kupfer.desktop

description: updated
summary: - Kupfer preferences window does not launch after upgrade to Quantal
+ Kupfer preferences window does not launch with broken desktop files
Revision history for this message
Karol Będkowski (karol-bedkowski) wrote :

Thanks for information.
Although this problem is outside Kupfer, it shouldn't crash in this situation.
Attached patch solve this problem.

Changed in kupfer:
status: New → Fix Committed
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.