Put log files to documents
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 21:58:09 +0000 (00:58 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 22:00:44 +0000 (01:00 +0300)
Or maybe we should put them on the desktop? home directory seemed lame.

modules/gui/qt4/dialogs/messages.cpp
modules/misc/logger.c

index f491b6e..9789cf7 100644 (file)
@@ -245,7 +245,7 @@ bool MessagesDialog::save()
 {
     QString saveLogFileName = QFileDialog::getSaveFileName(
             this, qtr( "Save log file as..." ),
-            QVLCUserDir( VLC_HOME_DIR ),
+            QVLCUserDir( VLC_DOCUMENTS_DIR ),
             qtr( "Texts / Logs (*.log *.txt);; All (*.*) ") );
 
     if( !saveLogFileName.isNull() )
index db842d1..070a1ee 100644 (file)
@@ -234,7 +234,7 @@ static int Open( vlc_object_t *p_this )
         if( !psz_file )
         {
 #ifdef __APPLE__
-            char *home = config_GetUserDir(VLC_HOME_DIR);
+            char *home = config_GetUserDir(VLC_DOCUMENTS_DIR);
             if( home == NULL
              || asprintf( &psz_file, "%s/"LOG_DIR"/%s", home,
                 (p_sys->msg.i_mode == MODE_HTML) ? LOG_FILE_HTML