]> Dogcows Code - chaz/openbox/commitdiff
let you specify <command> or <execute> for execute actions - backwards compat
authorDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 15:37:10 +0000 (11:37 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 15:37:10 +0000 (11:37 -0400)
openbox/actions/execute.c

index 7e58fe7c7c0178ea9550d14b00f8de2853df1a52..caf1347b379ab8fa4f263a5a47641de296357986 100644 (file)
@@ -39,7 +39,9 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
 
     o = g_new0(Options, 1);
 
-    if ((n = parse_find_node("command", node))) {
+    if ((n = parse_find_node("command", node)) ||
+        (n = parse_find_node("execute", node)))
+    {
         gchar *s = parse_string(doc, n);
         o->cmd = parse_expand_tilde(s);
         g_free(s);
This page took 0.022379 seconds and 4 git commands to generate.