diff options
author | Philipp Hörist <philipp@hoerist.com> | 2022-09-12 21:10:12 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2022-09-12 21:10:36 +0300 |
commit | 6dffa785cccb4caf43e86118780ed8936f4204b8 (patch) | |
tree | fba8faf1398cd83dd2b5dd3562440e9835b0a466 | |
parent | 4ba7d178e4649a910447e8c31e79ed360033c751 (diff) |
fix: Make plugin usable check work on all unix/linux systems
Fixes #11134
-rw-r--r-- | gajim/plugins/pluginmanager.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gajim/plugins/pluginmanager.py b/gajim/plugins/pluginmanager.py index cc0ead640..5dec36cbd 100644 --- a/gajim/plugins/pluginmanager.py +++ b/gajim/plugins/pluginmanager.py @@ -81,7 +81,13 @@ class PluginManifest: 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: |