Handle also AttributeError in desktop_xdg
This commit is contained in:
parent
fcb4cc41f3
commit
60d2b392c5
|
@ -11,7 +11,7 @@ class DesktopXDG(object):
|
||||||
try:
|
try:
|
||||||
self.desktop = Menu.parse().getMenu('Office').getMenuEntry(
|
self.desktop = Menu.parse().getMenu('Office').getMenuEntry(
|
||||||
'pybitmessage.desktop').DesktopEntry
|
'pybitmessage.desktop').DesktopEntry
|
||||||
except Exceptions.ParsingError:
|
except (AttributeError, Exceptions.ParsingError):
|
||||||
raise TypeError # TypeError disables startonlogon
|
raise TypeError # TypeError disables startonlogon
|
||||||
appimage = os.getenv('APPIMAGE')
|
appimage = os.getenv('APPIMAGE')
|
||||||
if appimage:
|
if appimage:
|
||||||
|
|
Reference in New Issue
Block a user