From 379961ae1693e28ec9c7f4698b38d5ef32b383bf Mon Sep 17 00:00:00 2001 From: olf Date: Fri, 22 Mar 2024 03:57:06 +0100 Subject: [PATCH] [package.py] Add categories from `freedesktop.org:menu-spec:apas03` (#24) See https://specifications.freedesktop.org/menu-spec/latest/apas03.html --- chumweb/package.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/chumweb/package.py b/chumweb/package.py index bab35d2..9ba5bc9 100644 --- a/chumweb/package.py +++ b/chumweb/package.py @@ -20,8 +20,10 @@ class PackageApplicationCategory(StrEnum): """ Application categories, see https://specifications.freedesktop.org/menu-spec/latest/apa.html for main categories and https://specifications.freedesktop.org/menu-spec/latest/apas02.html - for additional categories. + for additional categories, plus https://specifications.freedesktop.org/menu-spec/latest/apas03.html + if really appropriate. """ + other = "Other" # SailfishOS:Chum specific, i.e. not part of the Freedesktop.org categories audiovideo = "AudioVideo" audio = "Audio" video = "Video" @@ -35,7 +37,6 @@ class PackageApplicationCategory(StrEnum): settings = "Settings" system = "System" utility = "Utility" - other = "Other" building = "Building" debugger = "Debugger" ide = "IDE" @@ -163,6 +164,10 @@ class PackageApplicationCategory(StrEnum): motif = "Motif" java = "Java" consoleonly = "ConsoleOnly" + screensaver = "Screensaver" + trayicon = "TrayIcon" + applet = "Applet" + shell = "Shell" class PackageApplicationType(StrEnum):