Description: Use dpkg to identify the architecture to use The upstream check is not reliable because if you run i386 with a 64 bit kernel, you download the wrong binaries. . This patch is Debian specific since it relies on dpkg and thus can't be upstreamed. Author: Raphaƫl Hertzog Origin: vendor Forwarded: not-needed Index: nautilus-dropbox-2019.02.14/dropbox.in =================================================================== --- nautilus-dropbox-2019.02.14.orig/dropbox.in +++ nautilus-dropbox-2019.02.14/dropbox.in @@ -120,13 +120,13 @@ def yes_no_question(question): def plat(): if sys.platform.lower().startswith('linux'): - arch = platform.machine() - if (arch[0] == 'i' and - arch[1].isdigit() and - arch[2:4] == '86'): + arch = subprocess.Popen(["dpkg", "--print-architecture"], + stdout=subprocess.PIPE).communicate()[0].decode('utf-8') + arch = arch.rstrip("\n") + if arch == "i386": plat = "x86" - elif arch == 'x86_64': - plat = arch + elif arch == "amd64": + plat = "x86_64" else: FatalVisibleError("Platform not supported") return "lnx.%s" % plat