Fix parsing menus.cfg causing missing backgrounds menu (noted by JC Wong).

SVN revision: 36728
This commit is contained in:
Kim Woelders 2008-10-16 20:57:11 +00:00
parent 947e87f74c
commit 40b5438a3d
1 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,11 @@ ConfigFilePreparse(const char *src, const char *dst, const char *themepath)
def_user = username(getuid());
def_shell = usershell(getuid());
/* When themepath is NULL it shouldn't be used, but this is consistent
* with old behavior */
if (!themepath)
themepath = Mode.theme.path;
Esnprintf(execline, sizeof(execline), "%s " "-P " "-nostdinc " "-undef "
"-include %s/config/definitions " "-I%s " "-I%s/config "
"-D ENLIGHTENMENT_VERSION=%s " "-D ENLIGHTENMENT_ROOT=%s "