summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDjMelik <melik@archlinux.us>2010-08-23 19:25:47 -0700
committerDjMelik <melik@archlinux.us>2010-08-23 19:25:47 -0700
commit2aec7d8692fe1fdd7c5201f21760ee856949421a (patch)
tree08d5245113cc125ff341dd7b23e657707fd95075
parent802d3df689157bcd490ed26ac2e8d1cde5a9788c (diff)
Fixed another bug
-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.