Commit 9459dd3a authored by Felix Paul Kühne's avatar Felix Paul Kühne

logger: fixed default log location on OS X

(cherry picked from commit 64637de2753e3ff571a703ab540af181359e9e86)
parent b8723d77
...@@ -277,8 +277,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -277,8 +277,8 @@ static int Open( vlc_object_t *p_this )
if( !psz_file ) if( !psz_file )
{ {
#ifdef __APPLE__ #ifdef __APPLE__
# define LOG_DIR "Library/Logs/" # define LOG_DIR "Library/Logs"
char *home = config_GetUserDir(VLC_DOCUMENTS_DIR); char *home = config_GetUserDir(VLC_HOME_DIR);
if( home == NULL if( home == NULL
|| asprintf( &psz_file, "%s/"LOG_DIR"/%s", home, || asprintf( &psz_file, "%s/"LOG_DIR"/%s", home,
filename ) == -1 ) filename ) == -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