]> git.sesse.net Git - vlc/commitdiff
config: Make sure lua will be able to find share/lua on Mac OS X.
authorPierre d'Herbemont <pdherbemont@free.fr>
Wed, 30 Dec 2009 03:05:13 +0000 (04:05 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Wed, 30 Dec 2009 03:57:55 +0000 (04:57 +0100)
src/config/dirs_macos.c

index fdb272a6daaab7f959b05eb0e2a1db925177f6c5..fc91de2e1cf3d159696e30b959d770b7059aace2 100644 (file)
@@ -43,7 +43,9 @@ static pthread_once_t once = PTHREAD_ONCE_INIT;
 static void init_dirs( void )
 {
     configdir = config_GetUserDir(VLC_CONFIG_DIR);
-    datadir = config_GetUserDir(VLC_DATA_DIR);
+    int ret = asprintf(&datadir, "%s/share", psz_vlcpath);
+    if (ret == -1)
+        datadir = NULL;
 }
 
 const char *config_GetConfDir( void )