class TransfersMenu(Dbusmenu.Menuitem) shouldn't be used if importing fails

Bug #1077785 reported by ciel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntuone-client (Ubuntu)
New
Undecided
Unassigned

Bug Description

/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/platform/sync_menu/linux.py
---
try:
    from gi.repository import (
        Dbusmenu,
        SyncMenu,
    )
    use_syncmenu = True
except:
    use_syncmenu = False
---
When this fails, according to
> UbuntuOneSyncMenu = UbuntuOneSyncMenuLinux if use_syncmenu else DummySyncMenu
DummySyncMenu is used, but
> class TransfersMenu(Dbusmenu.Menuitem):
still depends on the constant Dbusmenu, causing ubuntuone-syncdaemon fail, resulting in IPCError on GUI.

There are situations where Dbusmenu constant is not available. so
> class TransfersMenu(object):
should be used instead.

ciel (cielavenir)
description: updated
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.