Commit e0abdc4f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Put log files to documents

Or maybe we should put them on the desktop? home directory seemed lame.
parent 595427c2
...@@ -245,7 +245,7 @@ bool MessagesDialog::save() ...@@ -245,7 +245,7 @@ bool MessagesDialog::save()
{ {
QString saveLogFileName = QFileDialog::getSaveFileName( QString saveLogFileName = QFileDialog::getSaveFileName(
this, qtr( "Save log file as..." ), this, qtr( "Save log file as..." ),
QVLCUserDir( VLC_HOME_DIR ), QVLCUserDir( VLC_DOCUMENTS_DIR ),
qtr( "Texts / Logs (*.log *.txt);; All (*.*) ") ); qtr( "Texts / Logs (*.log *.txt);; All (*.*) ") );
if( !saveLogFileName.isNull() ) if( !saveLogFileName.isNull() )
......
...@@ -234,7 +234,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -234,7 +234,7 @@ static int Open( vlc_object_t *p_this )
if( !psz_file ) if( !psz_file )
{ {
#ifdef __APPLE__ #ifdef __APPLE__
char *home = config_GetUserDir(VLC_HOME_DIR); char *home = config_GetUserDir(VLC_DOCUMENTS_DIR);
if( home == NULL if( home == NULL
|| asprintf( &psz_file, "%s/"LOG_DIR"/%s", home, || asprintf( &psz_file, "%s/"LOG_DIR"/%s", home,
(p_sys->msg.i_mode == MODE_HTML) ? LOG_FILE_HTML (p_sys->msg.i_mode == MODE_HTML) ? LOG_FILE_HTML
......
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