Add support for startonlogon in appimage

This commit is contained in:
Lee Miller 2022-08-14 01:14:06 +03:00
parent 4711dfdd93
commit 746e25c752
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@ ingredients:
- python-setuptools
- python-sip
- python-six
- python-xdg
- sni-qt
exclude:
- libdb5.3

View File

@ -11,6 +11,9 @@ class DesktopXDG(object):
menu_entry = Menu.parse().getMenu('Office').getMenuEntry(
'pybitmessage.desktop')
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):
"""Configure autostart according to settings"""