From 766dbfe516230645050f086da4dfe959d0b8c6db Mon Sep 17 00:00:00 2001 From: Papoteur Date: Wed, 10 Apr 2024 19:54:30 +0200 Subject: Adapt to i686 architecture --- qml/mageiawelcome.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index da3fec6..f67f797 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -55,9 +55,9 @@ class ConfList(QAbstractListModel): release_nb = subprocess.getoutput("lsb_release -sr") release_nb = release_nb.strip() kernel = subprocess.getoutput("uname -r") - if os.uname()[4] == "x86_64": + if os.uname()[4] == ("x86_64", "aarch64"): arch = "64-bit" - elif os.uname()[4] == "i586": + elif os.uname()[4] in ("i586", "i686", "armv7hl"): arch = "32-bit" else: arch = os.uname()[4] -- cgit v1.2.1