csb/cinnamon/python_3.8_platform.patch
Skaendo efe205b8d4
cinnamon: Fix for python 3.8
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
2020-01-14 15:28:12 +07:00

20 lines
677 B
Diff

--- a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py
+++ b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py
@@ -1,6 +1,7 @@
#!/usr/bin/python3
import platform
+import distro
import subprocess
import shlex
import os
@@ -105,7 +106,7 @@
title = ' '.join(contents[:2]) or "Manjaro Linux"
infos.append((_("Operating System"), title))
else:
- s = '%s (%s)' % (' '.join(platform.linux_distribution()), arch)
+ s = '%s (%s)' % (' '.join(distro.linux_distribution()), arch)
# Normalize spacing in distribution name
s = re.sub('\s{2,}', ' ', s)
infos.append((_("Operating System"), s))