Philipp Hörist pushed to branch master at gajim / gajim
Commits: 6dffa785 by Philipp Hörist at 2022-09-12T20:10:36+02:00 fix: Make plugin usable check work on all unix/linux systems Fixes #11134 - - - - - 1 changed file: - gajim/plugins/pluginmanager.py Changes: ===================================== gajim/plugins/pluginmanager.py ===================================== @@ -81,7 +81,13 @@ def __hash__(self): def is_usable(self) -> bool: if not self._check_requirements(): return False - return sys.platform in self.platforms + + platform = sys.platform + if platform not in ('win32', 'darwin'): + # sys.platform can return an unknown amount of unix/linux derivates + platform = 'others' + + return platform in self.platforms @property def is_shipped(self) -> bool: View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6dffa785cccb4caf43e86118780ed8936f4204b8 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6dffa785cccb4caf43e86118780ed8936f4204b8 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits