]> git.pld-linux.org Git - packages/cinnamon.git/blob - fix_path.patch
- updated to 5.8.2 (translations 5.8.1)
[packages/cinnamon.git] / fix_path.patch
1 --- a/files/usr/share/cinnamon/cinnamon-settings/bin/capi.py
2 +++ b/files/usr/share/cinnamon/cinnamon-settings/bin/capi.py
3 @@ -15,9 +15,7 @@
4  # You should have received a copy of the GNU General Public License
5  # along with this program.  If not, see http://www.gnu.org/licenses/
6  
7 -import platform
8  import os
9 -import sysconfig
10  
11  from gi.repository import Gio, GObject
12  
13 @@ -26,23 +24,7 @@ class CManager:
14      def __init__(self):
15          self.extension_point = Gio.io_extension_point_register ("cinnamon-control-center-1")
16          self.modules = []
17 -
18 -        architecture = platform.machine()
19 -        # get the arch-specific triplet, e.g. 'x86_64-linux-gnu' or 'arm-linux-gnueabihf'
20 -        # see also: https://wiki.debian.org/Python/MultiArch
21 -        triplet = sysconfig.get_config_var('MULTIARCH')
22 -        paths = ["/usr/lib", f"/usr/lib/{triplet}"]
23 -
24 -        # On x86 archs, iterate through multiple paths
25 -        # For instance, on a Mint i686 box, the path is actually /usr/lib/i386-linux-gnu
26 -        x86archs = ["i386", "i486", "i586", "i686"]
27 -        if architecture in x86archs:
28 -            for arch in x86archs:
29 -                paths += ["/usr/lib/%s" % arch]
30 -        elif architecture == "x86_64":
31 -            paths += ["/usr/lib/x86_64", "/usr/lib64"]
32 -        else:
33 -            paths += ["/usr/lib/%s" % architecture]
34 +        paths = ["/usr/lib", "/usr/lib64"]
35  
36          for path in paths:
37              if not os.path.islink(path):
This page took 0.18065 seconds and 3 git commands to generate.