utils: Add user OS matcher for generic Linux

Used for Flatpak and AppImage.
This commit is contained in:
OatmealDome 2024-10-28 18:03:36 -04:00
parent 5700db0e07
commit f67c72cedc

View File

@ -30,6 +30,8 @@ def guess_system_from_ua(request):
return { "USER_OS": "ubu" }
elif "Android" in ua:
return { "USER_OS": "android" }
elif "Linux" in ua:
return { "USER_OS": "linux-generic" }
else:
return { "USER_OS": "unknown" }