Commit 93e6a6a6 authored by Christophe Massiot's avatar Christophe Massiot

* src/libvlc.c: When the user dir is not available, fall back onto the

   application data directory.
parent 72939ffc
...@@ -367,8 +367,10 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] ) ...@@ -367,8 +367,10 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
} }
/* Set the config file stuff */ /* Set the config file stuff */
p_vlc->psz_userdir = config_GetUserDir();
p_vlc->psz_homedir = config_GetHomeDir(); p_vlc->psz_homedir = config_GetHomeDir();
p_vlc->psz_userdir = config_GetUserDir();
if( p_vlc->psz_userdir == NULL )
p_vlc->psz_userdir = strdup(p_vlc->psz_homedir);
p_vlc->psz_configfile = config_GetPsz( p_vlc, "config" ); p_vlc->psz_configfile = config_GetPsz( p_vlc, "config" );
if( p_vlc->psz_configfile != NULL && p_vlc->psz_configfile[0] == '~' if( p_vlc->psz_configfile != NULL && p_vlc->psz_configfile[0] == '~'
&& p_vlc->psz_configfile[1] == '/' ) && p_vlc->psz_configfile[1] == '/' )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment