mirror of
https://gitlab.com/CinnamonSlackBuilds/csb.git
synced 2025-01-13 20:01:46 +01:00
cinnamon: Fix for python 3.8
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
parent
9631cfc3f5
commit
efe205b8d4
2 changed files with 23 additions and 0 deletions
|
@ -71,6 +71,9 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-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
|
# Use cinnamon theme by default
|
||||||
patch -p1 < $CWD/default-theme.patch
|
patch -p1 < $CWD/default-theme.patch
|
||||||
|
|
||||||
|
|
20
cinnamon/python_3.8_platform.patch
Normal file
20
cinnamon/python_3.8_platform.patch
Normal 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))
|
||||||
|
|
Loading…
Reference in a new issue