Blob Blame History Raw
--- a/files/usr/share/cinnamon/cinnamon-settings/bin/capi.py
+++ b/files/usr/share/cinnamon/cinnamon-settings/bin/capi.py
@@ -15,9 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see http://www.gnu.org/licenses/
 
-import platform
 import os
-import sysconfig
 
 from gi.repository import Gio, GObject
 
@@ -26,23 +24,7 @@ class CManager:
     def __init__(self):
         self.extension_point = Gio.io_extension_point_register ("cinnamon-control-center-1")
         self.modules = []
-
-        architecture = platform.machine()
-        # get the arch-specific triplet, e.g. 'x86_64-linux-gnu' or 'arm-linux-gnueabihf'
-        # see also: https://wiki.debian.org/Python/MultiArch
-        triplet = sysconfig.get_config_var('MULTIARCH')
-        paths = ["/usr/lib", f"/usr/lib/{triplet}"]
-
-        # On x86 archs, iterate through multiple paths
-        # For instance, on a Mint i686 box, the path is actually /usr/lib/i386-linux-gnu
-        x86archs = ["i386", "i486", "i586", "i686"]
-        if architecture in x86archs:
-            for arch in x86archs:
-                paths += ["/usr/lib/%s" % arch]
-        elif architecture == "x86_64":
-            paths += ["/usr/lib/x86_64", "/usr/lib64"]
-        else:
-            paths += ["/usr/lib/%s" % architecture]
+        paths = ["/usr/lib", "/usr/lib64"]
 
         for path in paths:
             if not os.path.islink(path):