X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fexecute.c;h=9ab20d7119c2aa9b276db33a842d55db26120596;hb=dd8cb753c16a902b46400eb4e80288cbaa25ba99;hp=8d45aad60506f9687aaf578acc387235a4664a29;hpb=fbc7607fbd1a380428a53094e727ac7631871bd4;p=chaz%2Fopenbox diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c index 8d45aad6..9ab20d71 100644 --- a/openbox/actions/execute.c +++ b/openbox/actions/execute.c @@ -23,7 +23,7 @@ static gboolean i_input_func(guint initial_state, static void i_cancel_func(gpointer options); */ -void action_execute_startup() +void action_execute_startup(void) { actions_register("Execute", setup_func, @@ -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); @@ -102,6 +104,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) program = g_path_get_basename(argv[0]); /* sets up the environment */ sn_setup_spawn_environment(program, o->sn_name, o->sn_icon, + o->sn_wmclass, /* launch it on the current desktop */ screen_desktop); }