From 3daea772d8b36b61a3f9854190607c248c3f2ac7 Mon Sep 17 00:00:00 2001 From: Daniel Johnson Date: Mon, 1 Apr 2024 16:53:47 -0400 Subject: [PATCH] Make the file extension check for .AppImage case-insensitive. The problem is that we often have .AppImage instead of the more Unixy .appimage, but the later occurs too. So, We'll tolerate whatever CrAzY Casing you can come up with. Resolves #5396 --- lutris/util/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lutris/util/extract.py b/lutris/util/extract.py index 2338018564..895af7d80d 100644 --- a/lutris/util/extract.py +++ b/lutris/util/extract.py @@ -89,7 +89,7 @@ def guess_extractor(path): extractor = "exe" elif path.endswith(".deb"): extractor = "deb" - elif path.endswith(".AppImage"): + elif path.casefold().endswith(".appimage"): extractor = "AppImage" else: extractor = None