summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2026-02-01 22:51:42 +0100
committerPapoteur <papoteur@mageia.org>2026-02-01 22:51:42 +0100
commitf3162cab73dc77357b77649e2b0f7605960c4b86 (patch)
tree8bc74bdcb8bab0ea0fe6c78f9bbaf74c9a795ba4 /src
parent2c92a1faa8763bd67db8364e7025fa813043a17c (diff)
downloadmageiawelcome-f3162cab73dc77357b77649e2b0f7605960c4b86.tar
mageiawelcome-f3162cab73dc77357b77649e2b0f7605960c4b86.tar.gz
mageiawelcome-f3162cab73dc77357b77649e2b0f7605960c4b86.tar.bz2
mageiawelcome-f3162cab73dc77357b77649e2b0f7605960c4b86.tar.xz
mageiawelcome-f3162cab73dc77357b77649e2b0f7605960c4b86.zip
Remove applications from when not provided in 32 bits on 32 bits systems (mga#33998)
Diffstat (limited to 'src')
-rw-r--r--src/AppList.py114
-rw-r--r--src/helpers.py17
-rw-r--r--src/ui.py8
3 files changed, 74 insertions, 65 deletions
diff --git a/src/AppList.py b/src/AppList.py
index b2b040d..d073ba4 100644
--- a/src/AppList.py
+++ b/src/AppList.py
@@ -2,62 +2,62 @@ from PyQt6.QtWidgets import QApplication
_ = QApplication.translate
AppList = [
- { "group": "audio featured", "description": _("AppList", "Various Audio Codecs"), "title": "Audio Codecs", "name": "task-codec-audio", "command": "", "repo": "", "icon": "img/codecs-audio.png"},
- { "group": "audio featured", "description": _("AppList", "Various Audio Codecs"), "title": "Audio Codecs", "name": "task-codec-audio", "command": "", "repo": "tainted", "icon": "img/codecs-audio.png"},
- { "group": "video featured", "description": _("AppList", "Various Video Codecs"), "title": "Video Codecs", "name": "task-codec-video", "command": "", "repo": "", "icon": "img/codecs-video.png"},
- { "group": "video featured", "description": _("AppList", "Various Video Codecs"), "title": "Video Codecs", "name": "task-codec-video", "command": "", "repo": "tainted", "icon": "img/codecs-video.png"},
- { "group": "games featured", "description": _("AppList", "Steam Client (This needs 32-bit repositories enabled (see Media Sources tab)"), "title": "Steam", "name": "steam", "command": "steam", "repo": "steam", "icon": "img/steam.png"},
- { "group": "games", "description": _("AppList", "Lutris (This needs 32-bit repositories enabled (see Media Sources tab)"), "title": "Lutris", "name": "lutris", "command": "lutris", "repo": "", "icon": "img/lutris.png"},
- { "group": "games", "description": _("AppList", "3D Real Time Strategy"), "title": "Megaglest", "name": "megaglest", "command": "megaglest", "repo": "", "icon": "img/megaglest.png"},
- { "group": "games", "description": _("AppList", "Single/Multi-player first person shooter game"), "title": "Sauerbraten", "name": "sauerbraten", "command": "sauerbraten", "repo": "non-free", "icon": "img/sauerbraten.png"},
- { "group": "games", "description": _("AppList", "Classic 2d jump 'n run sidescroller with Tux "), "title": "Supertux", "name": "supertux", "command": "supertux2", "repo": "", "icon": "img/supertux.png"},
- { "group": "games", "description": _("AppList", "Kart racing game featuring Tux and friends"), "title": "SuperTuxKart", "name": "supertuxkart", "command": "supertuxkart", "repo": "", "icon": "img/supertuxkart.png"},
- { "group": "games", "description": _("AppList", "Postnuclear realtime strategy"), "title": "Warzone 2100", "name": "warzone2100", "command": "warzone2100", "repo": "", "icon": "img/warzone2100.png"},
- { "group": "games", "description": _("AppList", "Fantasy turn-based strategy game"), "title": "Battle for Wesnoth", "name": "wesnoth", "command": "wesnoth", "repo": "", "icon": "img/wesnoth.png"},
- { "group": "games", "description": _("AppList", "RTS Game of Ancient Warfare"), "title": "O A.D", "name": "0ad", "command": "0ad", "repo": "", "icon": "img/0ad.png"},
- { "group": "games", "description": _("AppList", "A collection of more than 1000 solitaire card games"), "title": "PySolFC", "name": "PySolFC", "command": "pysol", "repo": "", "icon": "img/pysol01.png"},
- { "group": "graphics", "description": _("AppList", "3d modeller/renderer"), "title": "Blender", "name": "blender", "command": "blender.nonsse", "repo": "", "icon": "img/blender.png"},
- { "group": "graphics", "description": _("AppList", "Painting program"), "title": "MyPaint", "name": "mypaint", "command": "mypaint", "repo": "", "icon": "img/mypaint.png"},
- { "group": "graphics", "description": _("AppList", "The GNU Image Manipulation Program"), "title": "GIMP", "name": "gimp", "command": "gimp", "repo": "", "icon": "img/gimp.png"},
- { "group": "graphics", "description": _("AppList", "Vector graphics editor"), "title": "Inkscape", "name": "inkscape", "command": "inkscape", "repo": "", "icon": "img/inkscape.png"},
- { "group": "graphics", "description": _("AppList", "Digital photo management application"), "title": "Digikam", "name": "digikam", "command": "digikam", "repo": "", "icon": "img/digikam.png"},
- { "group": "graphics", "description": _("AppList", "Virtual lighttable and darkroom for photographers"), "title": "Darktable", "name": "darktable", "command": "darktable", "repo": "", "icon": "img/darktable.png"},
- { "group": "internet", "description": _("AppList", "Client for the Matrix protocol"), "title": "Nheko", "name": "nheko", "command": "nheko", "repo": "", "icon": "img/nheko.png"},
- { "group": "internet", "description": _("AppList", "Full-featured graphical ftp/ftps/sftp client"), "title": "Filezilla", "name": "filezilla", "command": "filezilla", "repo": "", "icon": "img/filezilla.png"},
- { "group": "internet featured", "description": _("AppList", "Next-generation web browser"), "title": "Firefox", "name": "firefox", "command": "firefox", "repo": "", "icon": "img/firefox.png"},
- { "group": "internet", "description": _("AppList", "Lightweight but feature rich bittorrent client"), "title": "Qbittorrent", "name": "qbittorrent", "command": "qbittorrent", "repo": "", "icon": "img/qbittorrent.png"},
- { "group": "internet", "description": _("AppList", "E-mail, news and RSS client"), "title": "Thunderbird", "name": "thunderbird", "command": "thunderbird", "repo": "", "icon": "img/thunderbird.png"},
- { "group": "internet", "description": _("AppList", "Fast e-mail client"), "title": "Claws Mail", "name": "claws-mail", "command": "claws-mail", "repo": "", "icon": "img/claws-mail.png"},
- { "group": "video featured", "description": _("AppList", "Media Player"), "title": "Smplayer", "name": "smplayer", "command": "smplayer", "repo": "", "icon": "img/smplayer.png"},
- { "group": "video", "description": _("AppList", "A non-linear video editing application"), "title": "Kdenlive", "name": "kdenlive", "command": "kdenlive", "repo": "", "icon": "img/kdenlive.png"},
- { "group": "video featured", "description": _("AppList", "Multimedia player and streamer"), "title": "VLC", "name": "vlc", "command": "vlc", "repo": "", "icon": "img/vlc.png"},
- { "group": "video", "description": _("AppList", "For converting video to a selection of codecs"), "title": "Handbrake", "name": "handbrake", "command": "ghb", "repo": "tainted", "icon": "img/handbrake.png"},
- { "group": "video featured", "description": _("AppList", "Multimedia player and streamer"), "title": "VLC", "name": "vlc", "command": "vlc", "repo": "tainted", "icon": "img/vlc.png"},
- { "group": "video", "description": _("AppList", "Media Center"), "title": "Kodi", "name": "kodi", "command": "kodi", "repo": "", "icon": "img/kodi.png"},
- { "group": "audio", "description": _("AppList", "Audio Player similar to Winamp"), "title": "Qmmp", "name": "qmmp", "command": "qmmp", "repo": "", "icon": "img/qmmp.png"},
- { "group": "audio featured", "description": _("AppList", "Audio Editor With Effects/Analysis Tools"), "title": "Audacity", "name": "audacity", "command": "audacity", "repo": "", "icon": "img/AudacityLogo.png"},
- { "group": "audio", "description": _("AppList", "Audio player and music collection organizer"), "title": "Strawberry", "name": "strawberry", "command": "strawberry", "repo": "", "icon": "img/strawberry.png"},
- { "group": "audio", "description": _("AppList", "An audio file converter, CD ripper and replay gain tool"), "title": "Soundkonverter", "name": "soundkonverter", "command": "soundkonverter", "repo": "", "icon": "img/soundkonverter.png"},
+ { "group": "audio featured", "description": _("AppList", "Various Audio Codecs"), "title": "Audio Codecs", "name": "task-codec-audio", "command": "", "repo": "", "icon": "img/codecs-audio.png", "arch": ""},
+ { "group": "audio featured", "description": _("AppList", "Various Audio Codecs"), "title": "Audio Codecs", "name": "task-codec-audio", "command": "", "repo": "tainted", "icon": "img/codecs-audio.png", "arch": ""},
+ { "group": "video featured", "description": _("AppList", "Various Video Codecs"), "title": "Video Codecs", "name": "task-codec-video", "command": "", "repo": "", "icon": "img/codecs-video.png", "arch": ""},
+ { "group": "video featured", "description": _("AppList", "Various Video Codecs"), "title": "Video Codecs", "name": "task-codec-video", "command": "", "repo": "tainted", "icon": "img/codecs-video.png", "arch": ""},
+ { "group": "games featured", "description": _("AppList", "Steam Client (This needs 32-bit repositories enabled (see Media Sources tab)"), "title": "Steam", "name": "steam", "command": "steam", "repo": "steam", "icon": "img/steam.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "Lutris (This needs 32-bit repositories enabled (see Media Sources tab)"), "title": "Lutris", "name": "lutris", "command": "lutris", "repo": "", "icon": "img/lutris.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "3D Real Time Strategy"), "title": "Megaglest", "name": "megaglest", "command": "megaglest", "repo": "", "icon": "img/megaglest.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "Single/Multi-player first person shooter game"), "title": "Sauerbraten", "name": "sauerbraten", "command": "sauerbraten", "repo": "non-free", "icon": "img/sauerbraten.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "Classic 2d jump 'n run sidescroller with Tux "), "title": "Supertux", "name": "supertux", "command": "supertux2", "repo": "", "icon": "img/supertux.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "Kart racing game featuring Tux and friends"), "title": "SuperTuxKart", "name": "supertuxkart", "command": "supertuxkart", "repo": "", "icon": "img/supertuxkart.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "Postnuclear realtime strategy"), "title": "Warzone 2100", "name": "warzone2100", "command": "warzone2100", "repo": "", "icon": "img/warzone2100.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "Fantasy turn-based strategy game"), "title": "Battle for Wesnoth", "name": "wesnoth", "command": "wesnoth", "repo": "", "icon": "img/wesnoth.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "RTS Game of Ancient Warfare"), "title": "O A.D", "name": "0ad", "command": "0ad", "repo": "", "icon": "img/0ad.png", "arch": ""},
+ { "group": "games", "description": _("AppList", "A collection of more than 1000 solitaire card games"), "title": "PySolFC", "name": "PySolFC", "command": "pysol", "repo": "", "icon": "img/pysol01.png", "arch": ""},
+ { "group": "graphics", "description": _("AppList", "3d modeller/renderer"), "title": "Blender", "name": "blender", "command": "blender.nonsse", "repo": "", "icon": "img/blender.png", "arch": "64bits"},
+ { "group": "graphics", "description": _("AppList", "Painting program"), "title": "MyPaint", "name": "mypaint", "command": "mypaint", "repo": "", "icon": "img/mypaint.png", "arch": ""},
+ { "group": "graphics", "description": _("AppList", "The GNU Image Manipulation Program"), "title": "GIMP", "name": "gimp", "command": "gimp", "repo": "", "icon": "img/gimp.png", "arch": ""},
+ { "group": "graphics", "description": _("AppList", "Vector graphics editor"), "title": "Inkscape", "name": "inkscape", "command": "inkscape", "repo": "", "icon": "img/inkscape.png", "arch": ""},
+ { "group": "graphics", "description": _("AppList", "Digital photo management application"), "title": "Digikam", "name": "digikam", "command": "digikam", "repo": "", "icon": "img/digikam.png", "arch": "64bits"},
+ { "group": "graphics", "description": _("AppList", "Virtual lighttable and darkroom for photographers"), "title": "Darktable", "name": "darktable", "command": "darktable", "repo": "", "icon": "img/darktable.png", "arch": "64bits"},
+ { "group": "internet", "description": _("AppList", "Client for the Matrix protocol"), "title": "Nheko", "name": "nheko", "command": "nheko", "repo": "", "icon": "img/nheko.png", "arch": ""},
+ { "group": "internet", "description": _("AppList", "Full-featured graphical ftp/ftps/sftp client"), "title": "Filezilla", "name": "filezilla", "command": "filezilla", "repo": "", "icon": "img/filezilla.png", "arch": ""},
+ { "group": "internet featured", "description": _("AppList", "Next-generation web browser"), "title": "Firefox", "name": "firefox", "command": "firefox", "repo": "", "icon": "img/firefox.png", "arch": ""},
+ { "group": "internet", "description": _("AppList", "Lightweight but feature rich bittorrent client"), "title": "Qbittorrent", "name": "qbittorrent", "command": "qbittorrent", "repo": "", "icon": "img/qbittorrent.png", "arch": ""},
+ { "group": "internet", "description": _("AppList", "E-mail, news and RSS client"), "title": "Thunderbird", "name": "thunderbird", "command": "thunderbird", "repo": "", "icon": "img/thunderbird.png", "arch": ""},
+ { "group": "internet", "description": _("AppList", "Fast e-mail client"), "title": "Claws Mail", "name": "claws-mail", "command": "claws-mail", "repo": "", "icon": "img/claws-mail.png", "arch": ""},
+ { "group": "video featured", "description": _("AppList", "Media Player"), "title": "Smplayer", "name": "smplayer", "command": "smplayer", "repo": "", "icon": "img/smplayer.png", "arch": ""},
+ { "group": "video", "description": _("AppList", "A non-linear video editing application"), "title": "Kdenlive", "name": "kdenlive", "command": "kdenlive", "repo": "", "icon": "img/kdenlive.png", "arch": ""},
+ { "group": "video featured", "description": _("AppList", "Multimedia player and streamer"), "title": "VLC", "name": "vlc", "command": "vlc", "repo": "", "icon": "img/vlc.png", "arch": ""},
+ { "group": "video", "description": _("AppList", "For converting video to a selection of codecs"), "title": "Handbrake", "name": "handbrake", "command": "ghb", "repo": "tainted", "icon": "img/handbrake.png", "arch": ""},
+ { "group": "video featured", "description": _("AppList", "Multimedia player and streamer"), "title": "VLC", "name": "vlc", "command": "vlc", "repo": "tainted", "icon": "img/vlc.png", "arch": ""},
+ { "group": "video", "description": _("AppList", "Media Center"), "title": "Kodi", "name": "kodi", "command": "kodi", "repo": "", "icon": "img/kodi.png", "arch": ""},
+ { "group": "audio", "description": _("AppList", "Audio Player similar to Winamp"), "title": "Qmmp", "name": "qmmp", "command": "qmmp", "repo": "", "icon": "img/qmmp.png", "arch": ""},
+ { "group": "audio featured", "description": _("AppList", "Audio Editor With Effects/Analysis Tools"), "title": "Audacity", "name": "audacity", "command": "audacity", "repo": "", "icon": "img/AudacityLogo.png", "arch": ""},
+ { "group": "audio", "description": _("AppList", "Audio player and music collection organizer"), "title": "Strawberry", "name": "strawberry", "command": "strawberry", "repo": "", "icon": "img/strawberry.png", "arch": ""},
+ { "group": "audio", "description": _("AppList", "An audio file converter, CD ripper and replay gain tool"), "title": "Soundkonverter", "name": "soundkonverter", "command": "soundkonverter", "repo": "", "icon": "img/soundkonverter.png", "arch": ""},
#: explanation for RhythmBox
- { "group": "audio", "description": _("AppList", "Music Management"), "title": "RhythmBox", "name": "rhythmbox", "command": "rhythmbox", "repo": "", "icon": "img/rhythmbox.png"},
- { "group": "programming", "description": _("AppList", "Scientific Python Development Environment​ "), "title": "Spyder", "name": "spyder", "command": "spyder3", "repo": "", "icon": "img/spyder3.png"},
- { "group": "programming", "description": _("AppList", "Lightweight IDE for Qt"), "title": "Qt Creator", "name": "qt-creator", "command": "qtcreator", "repo": "", "icon": "img/qt-creator.png"},
- { "group": "programming", "description": _("AppList", "Editor with basic features of an IDE"), "title": "Geany", "name": "geany", "command": "geany", "repo": "", "icon": "img/geany.png"},
- { "group": "system", "description": _("AppList", "Sophisticated cd/dvd burning application"), "title": "K3b", "name": "k3b", "command": "k3b", "repo": "", "icon": "img/k3b.png"},
- { "group": "system", "description": _("AppList", "Write ISO images on USB device"), "title": "Isodumper", "name": "isodumper", "command": "isodumper", "repo": "", "icon": "img/isodumper.png"},
- { "group": "system", "description": _("AppList", "Partition editor"), "title": "GParted", "name": "gparted", "command": "gparted", "repo": "", "icon": "img/gparted.png"},
- { "group": "system featured", "description": _("AppList", "Version control system"), "title": "Git", "name": "git", "command": "", "repo": "", "icon": "img/git.png"},
- { "group": "system featured", "description": _("AppList", "Extra community-made background images"), "title": "mageia-theme-extra", "name": "mageia-theme-extra", "command": "", "repo": "", "icon": "img/mageia-theme-extra.png"},
- { "group": "system", "description": _("AppList", "Clean junk to free disk space and maintain privacy "), "title": "BleachBit", "name": "bleachbit", "command": "bleachbit", "repo": "", "icon": "img/bleachbit.png"},
- { "group": "system", "description": _("AppList", "A printer administration tool"), "title": "System Config Printer", "name": "system-config-printer", "command": "system-config-printer", "repo": "", "icon": "img/system-config-printer.png"},
- { "group": "system", "description": _("AppList", "Virtualization software"), "title": _("AppList", "VirtualBox (only with 64-bit systems)"), "name": "virtualbox", "command": "VirtualBox", "repo": "", "icon": "img/virtualbox.png"},
- { "group": "office", "description": _("AppList", "LibreOffice Spreadsheet Application"), "title": "LibreOffice Calc", "name": "libreoffice-calc", "command": "oocalc", "repo": "", "icon": "img/libreoffice-calc.png"},
- { "group": "office", "description": _("AppList", "LibreOffice Word Processor Application"), "title": "LibreOffice Writer", "name": "libreoffice-writer", "command": "oowriter", "repo": "", "icon": "img/libreoffice-writer.png"},
- { "group": "office", "description": _("AppList", "KDE office suite"), "title": "Calligra", "name": "calligra", "command": "", "repo": "", "icon": "img/calligra.png"},
- { "group": "office", "description": _("AppList", "Lean and fast, but full-featured word processor"), "title": "AbiWord", "name": "abiword", "command": "abiword", "repo": "", "icon": "img/abiword.png"},
- { "group": "office", "description": _("AppList", "A full-featured spreadsheet for GNOME"), "title": "Gnumeric", "name": "gnumeric", "command": "gnumeric", "repo": "", "icon": "img/gnumeric.png"},
- { "group": "office", "description": _("AppList", "E-book converter and library management"), "title": "Calibre", "name": "calibre", "command": "calibre", "repo": "", "icon": "img/calibre.png"},
- { "group": "office", "description": _("AppList", "Desktop Publishing Program"), "title": "Scribus", "name": "scribus", "command": "scribus", "repo": "", "icon": "img/scribus.png"},
- { "group": "office", "description": _("AppList", "Free easy personal accounting for all"), "title": "HomeBank", "name": "homebank", "command": "homebank", "repo": "", "icon": "img/homebank.png"},
- { "group": "office", "description": _("AppList", "Personal Finance Management Tool"), "title": "Skrooge", "name": "skrooge", "command": "skrooge", "repo": "", "icon": "img/skrooge.png"},
+ { "group": "audio", "description": _("AppList", "Music Management"), "title": "RhythmBox", "name": "rhythmbox", "command": "rhythmbox", "repo": "", "icon": "img/rhythmbox.png", "arch": ""},
+ { "group": "programming", "description": _("AppList", "Scientific Python Development Environment​ "), "title": "Spyder", "name": "spyder", "command": "spyder3", "repo": "", "icon": "img/spyder3.png", "arch": ""},
+ { "group": "programming", "description": _("AppList", "Lightweight IDE for Qt"), "title": "Qt Creator", "name": "qt-creator", "command": "qtcreator", "repo": "", "icon": "img/qt-creator.png", "arch": ""},
+ { "group": "programming", "description": _("AppList", "Editor with basic features of an IDE"), "title": "Geany", "name": "geany", "command": "geany", "repo": "", "icon": "img/geany.png", "arch": ""},
+ { "group": "system", "description": _("AppList", "Sophisticated cd/dvd burning application"), "title": "K3b", "name": "k3b", "command": "k3b", "repo": "", "icon": "img/k3b.png", "arch": ""},
+ { "group": "system", "description": _("AppList", "Write ISO images on USB device"), "title": "Isodumper", "name": "isodumper", "command": "isodumper", "repo": "", "icon": "img/isodumper.png", "arch": ""},
+ { "group": "system", "description": _("AppList", "Partition editor"), "title": "GParted", "name": "gparted", "command": "gparted", "repo": "", "icon": "img/gparted.png", "arch": ""},
+ { "group": "system featured", "description": _("AppList", "Version control system"), "title": "Git", "name": "git", "command": "", "repo": "", "icon": "img/git.png", "arch": ""},
+ { "group": "system featured", "description": _("AppList", "Extra community-made background images"), "title": "mageia-theme-extra", "name": "mageia-theme-extra", "command": "", "repo": "", "icon": "img/mageia-theme-extra.png", "arch": ""},
+ { "group": "system", "description": _("AppList", "Clean junk to free disk space and maintain privacy "), "title": "BleachBit", "name": "bleachbit", "command": "bleachbit", "repo": "", "icon": "img/bleachbit.png", "arch": ""},
+ { "group": "system", "description": _("AppList", "A printer administration tool"), "title": "System Config Printer", "name": "system-config-printer", "command": "system-config-printer", "repo": "", "icon": "img/system-config-printer.png", "arch": ""},
+ { "group": "system", "description": _("AppList", "Virtualization software"), "title": _("AppList", "VirtualBox (only with 64-bit systems)"), "name": "virtualbox", "command": "VirtualBox", "repo": "", "icon": "img/virtualbox.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "LibreOffice Spreadsheet Application"), "title": "LibreOffice Calc", "name": "libreoffice-calc", "command": "oocalc", "repo": "", "icon": "img/libreoffice-calc.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "LibreOffice Word Processor Application"), "title": "LibreOffice Writer", "name": "libreoffice-writer", "command": "oowriter", "repo": "", "icon": "img/libreoffice-writer.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "KDE office suite"), "title": "Calligra", "name": "calligra", "command": "", "repo": "", "icon": "img/calligra.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "Lean and fast, but full-featured word processor"), "title": "AbiWord", "name": "abiword", "command": "abiword", "repo": "", "icon": "img/abiword.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "A full-featured spreadsheet for GNOME"), "title": "Gnumeric", "name": "gnumeric", "command": "gnumeric", "repo": "", "icon": "img/gnumeric.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "E-book converter and library management"), "title": "Calibre", "name": "calibre", "command": "calibre", "repo": "", "icon": "img/calibre.png", "arch": "64bits"},
+ { "group": "office", "description": _("AppList", "Desktop Publishing Program"), "title": "Scribus", "name": "scribus", "command": "scribus", "repo": "", "icon": "img/scribus.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "Free easy personal accounting for all"), "title": "HomeBank", "name": "homebank", "command": "homebank", "repo": "", "icon": "img/homebank.png", "arch": ""},
+ { "group": "office", "description": _("AppList", "Personal Finance Management Tool"), "title": "Skrooge", "name": "skrooge", "command": "skrooge", "repo": "", "icon": "img/skrooge.png", "arch": ""},
]
diff --git a/src/helpers.py b/src/helpers.py
index 217ea33..eff660f 100644
--- a/src/helpers.py
+++ b/src/helpers.py
@@ -129,12 +129,7 @@ class ConfList():
release_nb = subprocess.getoutput("lsb_release -sr")
release_nb = release_nb.strip()
kernel = subprocess.getoutput("uname -r")
- if os.uname()[4] == ("x86_64", "aarch64"):
- arch = "64-bit"
- elif os.uname()[4] in ("i586", "i686", "armv7hl"):
- arch = "32-bit"
- else:
- arch = os.uname()[4]
+ arch = SystemArch().arch
try:
desktop = get_desktop_name(os.path.basename(os.getenv("DESKTOP_SESSION")))
except:
@@ -192,3 +187,13 @@ class ConfList():
screen = app.primaryScreen()
self.screen_factor = screen.devicePixelRatio()
return self.screen_factor
+
+class SystemArch():
+ def __init__(self):
+
+ if os.uname()[4] == ("x86_64", "aarch64"):
+ self.arch = "64-bit"
+ elif os.uname()[4] in ("i586", "i686", "armv7hl"):
+ self.arch = "32-bit"
+ else:
+ self.arch = os.uname()[4]
diff --git a/src/ui.py b/src/ui.py
index fc9aec4..3215dc5 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -52,6 +52,7 @@ from helpers import (
NetworkState,
ConfList,
Autostart,
+ SystemArch,
)
from AppList import AppList
from version import version
@@ -776,6 +777,7 @@ class AppListPage(QScrollArea):
def __init__(self, group, parent):
super().__init__()
+ arch32 = (SystemArch().arch == "32-bit")
self.parent = parent
self.group = group
self.widget = SlidePage("")
@@ -784,7 +786,7 @@ class AppListPage(QScrollArea):
self.list_layout = QVBoxLayout()
for index in range(len(AppList)):
item = AppList[index]
- if group in item["group"]:
+ if group in item["group"] and not (item["arch"] == "64bits" and arch32):
self.list_layout.addWidget(
ApplistItem(
item["group"],
@@ -794,6 +796,7 @@ class AppListPage(QScrollArea):
item["description"],
item["repo"],
item["command"],
+ item["arch"],
index,
self,
)
@@ -820,6 +823,7 @@ class AppListPage(QScrollArea):
item["description"],
item["repo"],
item["command"],
+ item["arch"],
applist_index,
self,
)
@@ -977,7 +981,7 @@ class GradientLegend(QWidget):
class ApplistItem(QWidget, Commands):
"""An element in application list"""
- def __init__(self, group, icon, name, title, description, repo, command, index, parent):
+ def __init__(self, group, icon, name, title, description, repo, command, arch, index, parent):
super().__init__()
self.index = index