From b543af60b3b625f978bec0eacc7da31cd9d347f6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 1 Sep 2003 00:53:55 +0000 Subject: move expand_tilde to ob_expand_tilde in openbox.c to make it global. use it on the command read in the menu parsing for pipe menus. use it on the command read for execute/restart actions. --- openbox/action.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openbox/action.c') diff --git a/openbox/action.c b/openbox/action.c index d24e81e6..7d06f12e 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -730,8 +730,11 @@ ObAction *action_parse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node) if (parse_attr_string("name", node, &actname)) { if ((act = action_from_string(actname))) { if (act->func == action_execute || act->func == action_restart) { - if ((n = parse_find_node("execute", node->xmlChildrenNode))) - act->data.execute.path = parse_string(doc, n); + if ((n = parse_find_node("execute", node->xmlChildrenNode))) { + gchar *s = parse_string(doc, n); + act->data.execute.path = expand_tilde(s); + g_free(s); + } } else if (act->func == action_showmenu) { if ((n = parse_find_node("menu", node->xmlChildrenNode))) act->data.showmenu.name = parse_string(doc, n); -- cgit v1.2.3