Parse 'Application:' config key, which specifies icon, window class,

portnov [2008-09-11 11:22:15]
Parse 'Application:' config key, which specifies icon, window class,
title and run command at once.
Filename
qwerty.py
diff --git a/qwerty.py b/qwerty.py
index 504dcae..5668dde 100755
--- a/qwerty.py
+++ b/qwerty.py
@@ -370,6 +370,14 @@ def parse_config():
                 raise SyntaxError, "Unexpected 'Description' key in config file"
             continue

+        v = parse_line('Application', line)
+        if v:
+            K.icon = v + '.png'
+            K.cls = v
+            K.command = v
+            K.title = v.capitalize()
+            continue
+
         v = parse_line('Icon',line)
         if v:
             if context == SECTION:
ViewGit