]> git.sesse.net Git - vlc/commitdiff
LUA: look in $(pkglibdir)/lua
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 14 Feb 2010 18:49:27 +0000 (20:49 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 14 Feb 2010 18:50:19 +0000 (20:50 +0200)
This should fix FHS conformance for .luac files

modules/misc/lua/vlc.c

index e0f1fe2bfccbe346393257761915ec61cea90ea5..9ebf9887c71daa2288170dc0361dcbae6efc60b3 100644 (file)
@@ -178,6 +178,12 @@ int vlclua_dir_list( vlc_object_t *p_this, const char *luadirname,
         free( psz_datapath );
     }
 
+#if !(defined(__APPLE__) || defined(SYS_BEOS) || defined(WIN32))
+    if( likely(asprintf( &ppsz_dir_list[i], "%s"DIR_SEP"lua"DIR_SEP"%s",
+                         config_GetLibDir(), luadirname ) != -1) )
+            i++;
+#endif
+
     ppsz_dir_list[i] = NULL;
     return VLC_SUCCESS;
 }