[vlc-devel] commit: Put log files to documents ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Aug 26 00:00:57 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 26 00:58:09 2009 +0300| [e0abdc4fa428f93a75a743bf7d54b049afadc1bd] | committer: Rémi Denis-Courmont
Put log files to documents
Or maybe we should put them on the desktop? home directory seemed lame.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0abdc4fa428f93a75a743bf7d54b049afadc1bd
---
modules/gui/qt4/dialogs/messages.cpp | 2 +-
modules/misc/logger.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index f491b6e..9789cf7 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -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() )
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index db842d1..070a1ee 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -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
More information about the vlc-devel
mailing list