Add support for startonlogon in appimage
This commit is contained in:
parent
4711dfdd93
commit
746e25c752
|
@ -14,6 +14,7 @@ ingredients:
|
||||||
- python-setuptools
|
- python-setuptools
|
||||||
- python-sip
|
- python-sip
|
||||||
- python-six
|
- python-six
|
||||||
|
- python-xdg
|
||||||
- sni-qt
|
- sni-qt
|
||||||
exclude:
|
exclude:
|
||||||
- libdb5.3
|
- libdb5.3
|
||||||
|
|
|
@ -11,6 +11,9 @@ class DesktopXDG(object):
|
||||||
menu_entry = Menu.parse().getMenu('Office').getMenuEntry(
|
menu_entry = Menu.parse().getMenu('Office').getMenuEntry(
|
||||||
'pybitmessage.desktop')
|
'pybitmessage.desktop')
|
||||||
self.desktop = menu_entry.DesktopEntry if menu_entry else None
|
self.desktop = menu_entry.DesktopEntry if menu_entry else None
|
||||||
|
appimage = os.getenv('APPIMAGE')
|
||||||
|
if appimage:
|
||||||
|
self.desktop.set('Exec', appimage)
|
||||||
|
|
||||||
def adjust_startonlogon(self, autostart=False):
|
def adjust_startonlogon(self, autostart=False):
|
||||||
"""Configure autostart according to settings"""
|
"""Configure autostart according to settings"""
|
||||||
|
|
Reference in New Issue
Block a user