From fc0c4f762b32dc205f0cc16705a345476acfc397 Mon Sep 17 00:00:00 2001 From: portnov Date: Thu, 11 Sep 2008 17:22:15 +0600 Subject: [PATCH] Parse 'Application:' config key, which specifies icon, window class, title and run command at once. --- qwerty.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) 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: -- 1.7.2.3