[libcalamares] Rename the log file

This commit is contained in:
Adriaan de Groot 2018-03-28 05:11:34 -04:00
parent 0f289e2552
commit cdf80615b8
2 changed files with 7 additions and 2 deletions

View File

@ -44,7 +44,12 @@ CalamaresApplication::CalamaresApplication( int& argc, char* argv[] )
, m_moduleManager( nullptr )
, m_debugMode( false )
{
setOrganizationName( QLatin1String( CALAMARES_ORGANIZATION_NAME ) );
// Setting the organization name makes the default cache
// directory -- where Calamares stores logs, for instance --
// <org>/<app>/, so we end up with ~/.cache/Calamares/calamares/
// which is excessively squidly.
//
// setOrganizationName( QLatin1String( CALAMARES_ORGANIZATION_NAME ) );
setOrganizationDomain( QLatin1String( CALAMARES_ORGANIZATION_DOMAIN ) );
setApplicationName( QLatin1String( CALAMARES_APPLICATION_NAME ) );
setApplicationVersion( QLatin1String( CALAMARES_VERSION ) );

View File

@ -119,7 +119,7 @@ CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QS
QString
logFile()
{
return CalamaresUtils::appLogDir().filePath( "Calamares.log" );
return CalamaresUtils::appLogDir().filePath( "session.log" );
}