[vlc-devel] Lua extension and vlc.misc

Jean-Baptiste Kempf jb at videolan.org
Tue Feb 28 21:58:32 CET 2012


On Tue, Feb 28, 2012 at 10:26:19PM +0200, Rémi Denis-Courmont wrote :
> Le mardi 28 février 2012 22:19:27 Jean-Baptiste Kempf, vous avez écrit :
> > On Tue, Feb 28, 2012 at 10:17:33PM +0200, Rémi Denis-Courmont wrote :
> > > Le mardi 28 février 2012 22:10:20 Jean-Baptiste Kempf, vous avez écrit :
> > > > How do we expose a cache directory then?
> > > 
> > > It depends how you use it. Just giving a string to a directory is not an
> > > answer.
> > 
> > Now, people use it to save temp/cache files with io.open
> 
> If we have io.open, then yes, cachedir might work. I don't think 'vlc.misc' is 
> a good prefix though. Ultimately, that's the root cause of the problem.

We have io.open, yes.

Moreover, we can "leak" the user information with
os.getenv("APPDATA") on windows
os.getenv("HOME") on other systems

I would prefer to give a defined way of having a cache folder that not,
because scripts will have their own sauce and mess...

Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list