winemenubuilder: Create xdg_config_dir if it does not exist.

This commit is contained in:
Damjan Jovanovic 2008-12-16 16:08:49 +02:00 committed by Alexandre Julliard
parent 704f9ea5d1
commit 2fde3c0f7b
1 changed files with 1 additions and 0 deletions

View File

@ -1708,6 +1708,7 @@ static BOOL init_xdg(void)
xdg_config_dir = heap_printf("%s/.config/menus/applications-merged", getenv("HOME"));
if (xdg_config_dir)
{
create_directories(xdg_config_dir);
if (getenv("XDG_DATA_HOME"))
xdg_data_dir = heap_printf("%s", getenv("XDG_DATA_HOME"));
else