Поддержка сборки в Эльбрусе
This commit is contained in:
parent
6e43742b2c
commit
d687dd8e98
@ -128,14 +128,14 @@ bool Paths::init( const QString& projectDir, const QString& configFileExtension
|
|||||||
m_tempDirectory = QStringLiteral( _PATH_TMP );
|
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() )
|
if ( configHome.isEmpty() )
|
||||||
{
|
{
|
||||||
configHome = m_homeDirectory.canonicalPath() + "/.config";
|
configHome = m_homeDirectory.canonicalPath() + "/.config";
|
||||||
}
|
}
|
||||||
m_userConfigDirectory = configHome + "/" + m_projectName;
|
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() )
|
if ( dataHome.isEmpty() )
|
||||||
{
|
{
|
||||||
dataHome = m_homeDirectory.canonicalPath() + "/.local/share";
|
dataHome = m_homeDirectory.canonicalPath() + "/.local/share";
|
||||||
|
Loading…
Reference in New Issue
Block a user