Поддержка сборки в Эльбрусе

This commit is contained in:
Andrei Astafev 2020-04-04 09:57:35 +03:00
parent 6e43742b2c
commit d687dd8e98

View File

@ -128,14 +128,14 @@ bool Paths::init( const QString& projectDir, const QString& configFileExtension
m_tempDirectory = QStringLiteral( _PATH_TMP );
}
auto configHome { QString::fromLocal8Bit( qgetenv( qPrintable( "XDG_CONFIG_HOME" ) ) ) };
auto configHome = QString::fromLocal8Bit( qgetenv( qPrintable( "XDG_CONFIG_HOME" ) ) );
if ( configHome.isEmpty() )
{
configHome = m_homeDirectory.canonicalPath() + "/.config";
}
m_userConfigDirectory = configHome + "/" + m_projectName;
auto dataHome { QString::fromLocal8Bit( qgetenv( qPrintable( "XDG_DATA_HOME" ) ) ) };
auto dataHome = QString::fromLocal8Bit( qgetenv( qPrintable( "XDG_DATA_HOME" ) ) );
if ( dataHome.isEmpty() )
{
dataHome = m_homeDirectory.canonicalPath() + "/.local/share";