[Mplayer-cvslog] CVS: main get_path.c,1.2,1.3

Felix Buenemann atmosfear at users.sourceforge.net
Mon Apr 21 03:25:25 CEST 2003

On Sunday 20 April 2003 13:50, Sascha Sommer wrote:
> > Sascha Sommer CVS wrote:
> > > Modified Files:
> > > get_path.c
> > > Log Message:
> > > allow config file loading outside of cygwin environment
> >
> > Hmm, what's the idea behind this commit?  Now every time I run a MinGW
> > mplayer.exe a directory mplayer with a config file inside is created in
> > the directory from which I started mplayer.exe (e.g. Desktop).  Is this
> > intended behavior?
> The idea behind this is to make mplayer work like other windows apps when
> no HOME environment variable is set
> (outside of msys and cygwin environment):
> You then have
> Program Files\mplayer\mplayer.exe
> Program Files\mplayer\mplayer\config
> Program Files\mplayer\mplayer\codecs.conf
> Program Files\mplayer\mplayer\font
> Program Files\mplayer\mplayer\codecs for additional codecs (real etc.)
> Then only a link to mplayer.exe on you desktop is needed.
> That it did not make the mplayer dirs before was more or less a bug.
> Mkdir only failed because the path where it wanted to make .mplayer dir
> looked like c:\msys\home\unknown/.mplayer.

I think if you do this it makes sense to use windows 2000/xp directory 
 - systemwide config to C:\Documents and Settings\All Users\Application  
- user config to C:\Documents and Settings\username\Applicaion Data\mplayer

of course this is only standard for english windows default config, but the 
actual paths can be fetched either from registry or the %USERPROFILE% (or 
sth. like it) enviroment variable.
For older windversions this is usually %WINDIR%\profiles\%USERNAME%

Maybe a good compromise is to store systemwide config in program files\mplayer  
and per user config in %USERPROFILE%\mplayer

> Sascha

Best Regards,
- MPlayer Developer - http://mplayerhq.hu/ -

More information about the MPlayer-cvslog mailing list