]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/execute.c
change the <execute> to <command> in the mouse focus example
[chaz/openbox] / openbox / actions / execute.c
index 606bb15326dd4836fda8ce14dda1ce272d190e2f..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("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);
@@ -103,8 +105,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
             /* sets up the environment */
             sn_setup_spawn_environment(program, o->sn_name, o->sn_icon,
                                        /* launch it on the current desktop */
-                                       screen_desktop,
-                                       data->time);
+                                       screen_desktop);
         }
 
         if (!g_spawn_async(NULL, argv, NULL,
This page took 0.027215 seconds and 4 git commands to generate.