]> Dogcows Code - chaz/openbox/commitdiff
Accept <command> in addition to <execute> for the restart action.
authorMikael Magnusson <mikachu@comhem.se>
Tue, 31 Jul 2007 16:33:57 +0000 (18:33 +0200)
committerDana Jansens <danakj@orodu.net>
Tue, 31 Jul 2007 16:37:31 +0000 (12:37 -0400)
openbox/actions/restart.c

index f7f1dfc0bb40f954b8496990bdeaf4603465b757..fff0a87f8558a09c56ef2276de4880e4769eec89 100644 (file)
@@ -25,7 +25,9 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
 
     o = g_new0(Options, 1);
 
-    if ((n = parse_find_node("execute", 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.023944 seconds and 4 git commands to generate.