From 746e25c752227ade3764b415533f204d2246afc7 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sun, 14 Aug 2022 01:14:06 +0300 Subject: [PATCH] Add support for startonlogon in appimage --- packages/AppImage/PyBitmessage.yml | 1 + src/plugins/desktop_xdg.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/packages/AppImage/PyBitmessage.yml b/packages/AppImage/PyBitmessage.yml index a8948a3c..3eeaef64 100644 --- a/packages/AppImage/PyBitmessage.yml +++ b/packages/AppImage/PyBitmessage.yml @@ -14,6 +14,7 @@ ingredients: - python-setuptools - python-sip - python-six + - python-xdg - sni-qt exclude: - libdb5.3 diff --git a/src/plugins/desktop_xdg.py b/src/plugins/desktop_xdg.py index 3dbd212f..7e1c3586 100644 --- a/src/plugins/desktop_xdg.py +++ b/src/plugins/desktop_xdg.py @@ -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"""