From c8147d94e1cf1b01e5f37f43375a1cf59ccc2e92 Mon Sep 17 00:00:00 2001 From: hendrik Date: Sun, 3 May 2020 01:05:40 +0200 Subject: [PATCH] get linux distro with distro package --- bin/kazam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/kazam b/bin/kazam index fb4073b..d699ef1 100755 --- a/bin/kazam +++ b/bin/kazam @@ -71,8 +71,8 @@ if __name__ == "__main__": datadir = curpath.split('bin/')[0] + "share/kazam/" try: - import platform - dist = platform.linux_distribution() + import distro + dist = distro.linux_distribution() except: # Fallback to the almighty Ubuntu 12.10 ;) dist = ('Ubuntu', '12.10', 'quantal')