diff --git a/src/rootmenu.c b/src/rootmenu.c index f391fc60..f2aa05df 100644 --- a/src/rootmenu.c +++ b/src/rootmenu.c @@ -673,9 +673,13 @@ static void constructMenu(WMenu * menu, WMenuEntry * entry) tmp = wexpandpath(path[i]); - if (strstr(tmp, "#usergnusteppath#") == tmp) + if (strstr(tmp, "#usergnusteppath#") == tmp) { + char *old_tmp = tmp; + tmp = wstrconcat(wusergnusteppath(), tmp + 17); + wfree(old_tmp); + } wfree(path[i]); lpath = getLocalizedMenuFile(tmp);