Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
6dffa785
by Philipp Hörist at 2022-09-12T20:10:36+02:00
1 changed file:
Changes:
| ... | ... | @@ -81,7 +81,13 @@ def __hash__(self): |
| 81 | 81 | def is_usable(self) -> bool:
|
| 82 | 82 | if not self._check_requirements():
|
| 83 | 83 | return False
|
| 84 | - return sys.platform in self.platforms
|
|
| 84 | + |
|
| 85 | + platform = sys.platform
|
|
| 86 | + if platform not in ('win32', 'darwin'):
|
|
| 87 | + # sys.platform can return an unknown amount of unix/linux derivates
|
|
| 88 | + platform = 'others'
|
|
| 89 | + |
|
| 90 | + return platform in self.platforms
|
|
| 85 | 91 | |
| 86 | 92 | @property
|
| 87 | 93 | def is_shipped(self) -> bool:
|