summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archey4
1 files changed, 3 insertions, 1 deletions
diff --git a/archey b/archey
index 6d00958..fe3f802 100644
--- a/archey
+++ b/archey
@@ -104,7 +104,9 @@ processes = map(xmonadfix, [process.split()[3] for process in p1 if process])
p1 = None
# Find Distro.
-DetectUbuntu = Popen(['grep', '-i', 'ubuntu', '/etc/lsb-release'], stdout=PIPE)
+DetectLsb = os.path.exists('/etc/lsb-release')
+if DetectLsb:
+ DetectUbuntu = Popen(['grep', '-i', 'ubuntu', '/etc/lsb-release'], stdout=PIPE)
DetectArch = os.path.exists('/etc/arch-release')
# Print coloured key with normal value.