diff --git a/CHANGELOG.md b/CHANGELOG.md index 9807671b..8bcdfaeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Improvements - General - handling http redirect errors + +- AppImage + - not enabled for non-x86_64 systems - Web - using custom installation properties by Electron version if required (available on **bauh-files**). e.g: custom User-Agent for WhatsApp Web on Electron 13.6.X. diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index 2769ba30..12849d65 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -27,7 +27,7 @@ from bauh.api.paths import DESKTOP_ENTRIES_DIR from bauh.commons import resource from bauh.commons.boot import CreateConfigFile from bauh.commons.html import bold -from bauh.commons.system import SystemProcess, new_subprocess, ProcessHandler, run_cmd, SimpleProcess +from bauh.commons.system import SystemProcess, new_subprocess, ProcessHandler, SimpleProcess from bauh.gems.appimage import query, INSTALLATION_DIR, APPIMAGE_SHARED_DIR, ROOT_DIR, \ APPIMAGE_CONFIG_DIR, UPDATES_IGNORED_FILE, util, get_default_manual_installation_file_dir, DATABASE_APPS_FILE, \ DATABASE_RELEASES_FILE, APPIMAGE_CACHE_DIR, get_icon_path, DOWNLOAD_DIR @@ -692,6 +692,9 @@ class AppImageManager(SoftwareManager): return bool(shutil.which('sqlite3')) def can_work(self) -> Tuple[bool, Optional[str]]: + if not self.context.is_system_x86_64(): + return False, self.i18n['message.requires_architecture'].format(arch=bold('x86_64')) + if not self._is_sqlite3_available(): return False, self.i18n['missing_dep'].format(dep=bold('sqlite3')) diff --git a/bauh/view/resources/locale/ca b/bauh/view/resources/locale/ca index c8707435..467c9613 100644 --- a/bauh/view/resources/locale/ca +++ b/bauh/view/resources/locale/ca @@ -346,6 +346,7 @@ manage_window.upgrade_all.popup.body=Voleu actualitzar totes les aplicacions sel manage_window.upgrade_all.popup.title=Actualitza message.file.not_exist=Fitxer no existeix message.file.not_exist.body=El fitxer {} sembla no existir +message.requires_architecture=Requires {arch} architecture mirror=mirall missing_dep={dep} is not installed name=nom diff --git a/bauh/view/resources/locale/de b/bauh/view/resources/locale/de index dda94c79..bf8cd3e1 100644 --- a/bauh/view/resources/locale/de +++ b/bauh/view/resources/locale/de @@ -345,6 +345,7 @@ manage_window.upgrade_all.popup.body=Alle ausgewählten Anwendungen upgraden manage_window.upgrade_all.popup.title=Upgrade message.file.not_exist=Datei existiert nicht message.file.not_exist.body=Die Datei {} scheint nicht zu existieren +message.requires_architecture=Requires {arch} architecture mirror=mirror missing_dep={dep} is not installed name=Name diff --git a/bauh/view/resources/locale/en b/bauh/view/resources/locale/en index c4668f63..2602b3ca 100644 --- a/bauh/view/resources/locale/en +++ b/bauh/view/resources/locale/en @@ -346,6 +346,7 @@ manage_window.upgrade_all.popup.body=Upgrade all selected applications ? manage_window.upgrade_all.popup.title=Upgrade message.file.not_exist.body=The file {} seems not to exist message.file.not_exist=File does not exist +message.requires_architecture=Requires {arch} architecture mirror=mirror missing_dep={dep} is not installed name=name diff --git a/bauh/view/resources/locale/es b/bauh/view/resources/locale/es index 8f27bbb2..d8fa3f36 100644 --- a/bauh/view/resources/locale/es +++ b/bauh/view/resources/locale/es @@ -347,6 +347,7 @@ manage_window.upgrade_all.popup.body=¿Quiere actualizar todas las aplicaciones manage_window.upgrade_all.popup.title=Actualizar message.file.not_exist=Archivo no existe message.file.not_exist.body=El archivo {} parece no existir +message.requires_architecture=Requiere arquitectura {arch} mirror=espejo missing_dep={dep} no está instalado name=nombre diff --git a/bauh/view/resources/locale/fr b/bauh/view/resources/locale/fr index c94b0836..c9ce6f02 100644 --- a/bauh/view/resources/locale/fr +++ b/bauh/view/resources/locale/fr @@ -342,6 +342,7 @@ manage_window.upgrade_all.popup.body=Mettre à jour toutes applications sélecti manage_window.upgrade_all.popup.title=Mettre à jour message.file.not_exist.body=Le fichier {} n'a pas l'air d'exister message.file.not_exist=Fichier inexistant +message.requires_architecture=Requires {arch} architecture mirror=mirroir missing_dep={dep} is not installed name=nom diff --git a/bauh/view/resources/locale/it b/bauh/view/resources/locale/it index 6bf8c1b3..c9e342e1 100644 --- a/bauh/view/resources/locale/it +++ b/bauh/view/resources/locale/it @@ -347,6 +347,7 @@ manage_window.upgrade_all.popup.body=Aggiornare tutte le applicazioni selezionat manage_window.upgrade_all.popup.title=Aggiorna message.file.not_exist=File non esiste message.file.not_exist.body=Il file {} sembra non esistere +message.requires_architecture=Requires {arch} architecture mirror=specchio missing_dep={dep} is not installed name=nome diff --git a/bauh/view/resources/locale/pt b/bauh/view/resources/locale/pt index a8a3510e..70c2da4c 100644 --- a/bauh/view/resources/locale/pt +++ b/bauh/view/resources/locale/pt @@ -346,6 +346,7 @@ manage_window.upgrade_all.popup.body=Atualizar todos os aplicativos selecionados manage_window.upgrade_all.popup.title=Atualizar message.file.not_exist.body=O arquivo {} parece não existir message.file.not_exist=Arquivo não existe +message.requires_architecture=Requer arquitetura {arch} mirror=espelho missing_dep={dep} não está instalado name=nome diff --git a/bauh/view/resources/locale/ru b/bauh/view/resources/locale/ru index db9188e2..8bdc8fc9 100644 --- a/bauh/view/resources/locale/ru +++ b/bauh/view/resources/locale/ru @@ -345,6 +345,7 @@ manage_window.upgrade_all.popup.body=Обновить все выбранные manage_window.upgrade_all.popup.title=Обновление message.file.not_exist=Файл не существует message.file.not_exist.body=Файл {}, кажется, не существует +message.requires_architecture=Requires {arch} architecture mirror=Зеркало missing_dep={dep} is not installed name=Имя diff --git a/bauh/view/resources/locale/tr b/bauh/view/resources/locale/tr index 6250f3d1..0068db5d 100644 --- a/bauh/view/resources/locale/tr +++ b/bauh/view/resources/locale/tr @@ -345,6 +345,7 @@ manage_window.upgrade_all.popup.body=Seçilen tüm uygulamalar yükseltilsin mi manage_window.upgrade_all.popup.title=Yükselt message.file.not_exist.body={} Dosyası yok gibi görünüyor message.file.not_exist=Dosya bulunamuyor +message.requires_architecture=Requires {arch} architecture mirror=yansı missing_dep={dep} is not installed name=isim