return datadir;
}
+static char *config_GetHomeDir (void)
+{
+ const char *home = getenv ("HOME");
+ if (home != NULL)
+ return FromLocaleDup (home);
+
+ return config_GetLibDir();
+}
+
char *config_GetUserDir (vlc_userdir_t type)
{
switch (type)
case VLC_VIDEOS_DIR:
break;
}
- return config_GetLibDir ();
+ return config_GetHomeDir ();
}