1 --- a/files/usr/share/cinnamon/cinnamon-settings/bin/capi.py
2 +++ b/files/usr/share/cinnamon/cinnamon-settings/bin/capi.py
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/
11 from gi.repository import Gio, GObject
13 @@ -26,23 +24,7 @@ class CManager:
15 self.extension_point = Gio.io_extension_point_register ("cinnamon-control-center-1")
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}"]
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"]
33 - paths += ["/usr/lib/%s" % architecture]
34 + paths = ["/usr/lib", "/usr/lib64"]
37 if not os.path.islink(path):