cinnamon: Fix for python 3.8

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Skaendo 2020-01-13 05:06:42 +00:00 committed by Willy Sudiarto Raharjo
parent 9631cfc3f5
commit efe205b8d4
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 23 additions and 0 deletions

View file

@ -71,6 +71,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Patch to fix platform.linux_distribution with python 3.8
patch -p1 < $CWD/python_3.8_platform.patch
# Use cinnamon theme by default
patch -p1 < $CWD/default-theme.patch

View file

@ -0,0 +1,20 @@
--- 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))