Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
1f849f30 by cal0pteryx at 2026-04-24T23:05:38+02:00
fix: Normalize file suffix before checking for executable file suffixes
Fixes #12700
- - - - -
1 changed file:
- gajim/gtk/util/misc.py
Changes:
=====================================
gajim/gtk/util/misc.py
=====================================
@@ -439,13 +439,15 @@ def is_file_extension_executable(path: Path) -> bool:
if not path.suffix:
return False
+ suffix_lowercase = path.suffix[1:].lower()
+
match sys.platform:
case "win32":
- return path.suffix[1:] in WINDOWS_EXECUTABLE_EXTENSIONS
+ return suffix_lowercase in WINDOWS_EXECUTABLE_EXTENSIONS
case "darwin":
- return path.suffix[1:] in MACOS_EXECUTABLE_EXTENSIONS
+ return suffix_lowercase in MACOS_EXECUTABLE_EXTENSIONS
case "linux":
- return path.suffix[1:] in LINUX_EXECUTABLE_EXTENSIONS
+ return suffix_lowercase in LINUX_EXECUTABLE_EXTENSIONS
case _:
return False
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/1f849f30da0b4b9072096bf36ed3df77b8563519
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/1f849f30da0b4b9072096bf36ed3df77b8563519
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]