diff --git a/offlineimap/utils/distro.py b/offlineimap/utils/distro.py index 00e21e9..da9f21c 100644 --- a/offlineimap/utils/distro.py +++ b/offlineimap/utils/distro.py @@ -48,7 +48,11 @@ def get_os_name(): if OS.startswith('linux'): DISTRO = platform.linux_distribution()[0] if DISTRO: - OS = OS + "-%s" % DISTRO.split()[0].lower() + OS = OS + "-%s" % DISTRO.split()[0].lower() + # add archlinux manually, for more information + # see commit afb28d87af13a8e91e6115112b361e8ae8ac7167 + if os.path.exists('/etc/arch-release'): + OS = "linux-arch" return OS