summaryrefslogtreecommitdiff
path: root/archey3
diff options
context:
space:
mode:
Diffstat (limited to 'archey3')
-rw-r--r--archey316
1 files changed, 13 insertions, 3 deletions
diff --git a/archey3 b/archey3
index c1c1550..666a9eb 100644
--- a/archey3
+++ b/archey3
@@ -110,7 +110,7 @@ WM_DICT = {
'wmii': 'wmii',
'xfwm4': 'Xfwm',
'emerald': 'Emerald',
- re.compile('xmonad-*'): 'xmonad',
+ 'xmonad': 'xmonad',
'': 'None',
}
@@ -425,8 +425,18 @@ class processCheck(display):
def run_command(self):
super().run_command()
out = str(self.process.communicate()[0])
- self._processes = set([line.split()[3] for line in out.split('\\n') if\
- len(line.split()) == 4])
+
+ self._processes = set()
+ for line in out.split("\\n"):
+ words = line.split()
+ if len(words) <= 10:
+ continue
+
+ # Ignore the wrapper command
+ if words[10] == 'ck-launch-session':
+ words[10] = words[11]
+
+ self._processes.add(words[10])
def __call__(self, proc):
if proc in self._processes: