X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenu.c;h=d954102762dc1d1309d8749208ccb4e70c7d79db;hb=67f9061a7a8d28b1859bc19baad5811d5310ae47;hp=cf405720ab211cab138ba8dd930a4a1ce973b6a2;hpb=43c5c01d33e0f4b849fe93ba468827180727eadc;p=chaz%2Fopenbox diff --git a/openbox/menu.c b/openbox/menu.c index cf405720..d9541027 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -92,7 +92,7 @@ void menu_startup() } } if (!loaded) { - if (menu_open("menu", &doc, &node)) { + if (menu_open("menu.xml", &doc, &node)) { parse_tree(menu_parse_inst, doc, node->xmlChildrenNode); xmlFreeDoc(doc); } @@ -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);