summaryrefslogtreecommitdiff
path: root/openbox/menu.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/menu.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/menu.c')
-rw-r--r--openbox/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/menu.c b/openbox/menu.c
index cf405720..8cc1c872 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -203,7 +203,7 @@ static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
if ((menu = menu_new(name, title, NULL))) {
if (parse_attr_string("execute", node, &script)) {
- menu->execute = g_strdup(script);
+ menu->execute = ob_expand_tilde(script);
} else {
state->menus = g_slist_prepend(state->menus, menu);
parse_tree(i, doc, node->xmlChildrenNode);