diff --git a/CHANGELOG.md b/CHANGELOG.md index e86e19a6..9a4ded53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.9.28] 2022-02-14 + +### Fixes +- Distribution + - AppImage: not able to detect updates on the **tray mode** because the `bauh-cli` call was referencing the system's Python interpreter instead of the containerized one [#230](https://github.com/vinifmor/bauh/issues/230) + + ## [0.9.27] 2022-02-11 ### Improvements diff --git a/bauh/__init__.py b/bauh/__init__.py index 6507afdc..dc5c9cbc 100644 --- a/bauh/__init__.py +++ b/bauh/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.9.27' +__version__ = '0.9.28' __app_name__ = 'bauh' import os diff --git a/bauh/view/qt/systray.py b/bauh/view/qt/systray.py index a3161d80..f7d40e01 100755 --- a/bauh/view/qt/systray.py +++ b/bauh/view/qt/systray.py @@ -30,7 +30,7 @@ CLI_NAME = f'{__app_name__}-cli' def get_cli_path() -> str: if os.getenv('APPIMAGE'): - return CLI_NAME + return f"{os.environ['APPRUN_STARTUP_EXEC_PATH']} {os.environ['APPDIR']}usr/bin/{CLI_NAME}" venv = os.getenv('VIRTUAL_ENV') @@ -51,7 +51,7 @@ def get_cli_path() -> str: def list_updates(logger: logging.Logger) -> List[PackageUpdate]: cli_path = get_cli_path() if cli_path: - exitcode, output = system.execute(f'{cli_path} updates -f json', custom_env=dict(os.environ)) + exitcode, output = system.execute(f'{cli_path} updates -f json') if exitcode != 0: output_log = output.replace('\n', ' ') if output else ' ' diff --git a/linux_dist/appimage/AppImageBuilder.yml b/linux_dist/appimage/AppImageBuilder.yml index 03181384..fb7d8044 100755 --- a/linux_dist/appimage/AppImageBuilder.yml +++ b/linux_dist/appimage/AppImageBuilder.yml @@ -65,7 +65,6 @@ AppDir: runtime: version: "continuous" env: - PATH: '${APPDIR}/usr/bin:${PATH}' PYTHONHOME: '${APPDIR}/usr' PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages'