[improvement][appimage] creating a symlink for the installed applications at '~.local/bin'

This commit is contained in:
Vinicius Moreira
2020-06-16 17:42:10 -03:00
parent 5701c95d2e
commit 20d6f0fa35
13 changed files with 91 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ from bauh.gems.appimage import ROOT_DIR, INSTALLATION_PATH
from bauh.view.util.translation import I18n
CACHED_ATTRS = {'name', 'description', 'version', 'url_download', 'author', 'license', 'source',
'icon_path', 'github', 'categories', 'imported', 'install_dir'}
'icon_path', 'github', 'categories', 'imported', 'install_dir', 'symlink'}
class AppImage(SoftwarePackage):
@@ -15,7 +15,8 @@ class AppImage(SoftwarePackage):
url_download: str = None, url_icon: str = None, url_screenshot: str = None, license: str = None, author: str = None,
categories=None, icon_path: str = None, installed: bool = False,
url_download_latest_version: str = None, local_file_path: str = None, imported: bool = False,
i18n: I18n = None, install_dir: str = None, custom_actions: List[CustomSoftwareAction] = None, updates_ignored: bool = False, **kwargs):
i18n: I18n = None, install_dir: str = None, custom_actions: List[CustomSoftwareAction] = None, updates_ignored: bool = False,
symlink: str = None, **kwargs):
super(AppImage, self).__init__(id=name, name=name, version=version, latest_version=version,
icon_url=url_icon, license=license, description=description,
installed=installed)
@@ -33,6 +34,7 @@ class AppImage(SoftwarePackage):
self.install_dir = install_dir
self.custom_actions = custom_actions
self.updates_ignored = updates_ignored
self.symlink = symlink
def __repr__(self):
return "{} (name={}, github={})".format(self.__class__.__name__, self.name, self.github)