summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-01 00:53:55 +0000
committerDana Jansens <danakj@orodu.net>2003-09-01 00:53:55 +0000
commitb543af60b3b625f978bec0eacc7da31cd9d347f6 (patch)
tree330a8fb4be06ae366becc72834689877c927dff1 /openbox/action.c
parent43c5c01d33e0f4b849fe93ba468827180727eadc (diff)
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.
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c7
1 files changed, 5 insertions, 2 deletions
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);