@ -145,6 +145,9 @@ qmlDirCandidates( bool assumeBuilddir )
{
{
if ( assumeBuilddir )
if ( assumeBuilddir )
qmlDirs < < QDir : : current ( ) . absoluteFilePath ( " src/qml " ) ; // In build-dir
qmlDirs < < QDir : : current ( ) . absoluteFilePath ( " src/qml " ) ; // In build-dir
if ( CalamaresUtils : : haveExtraDirs ( ) )
for ( auto s : CalamaresUtils : : extraDataDirs ( ) )
qmlDirs < < ( s + QML ) ;
qmlDirs < < CalamaresUtils : : appDataDir ( ) . absoluteFilePath ( QML ) ;
qmlDirs < < CalamaresUtils : : appDataDir ( ) . absoluteFilePath ( QML ) ;
}
}
@ -164,6 +167,9 @@ settingsFileCandidates( bool assumeBuilddir )
{
{
if ( assumeBuilddir )
if ( assumeBuilddir )
settingsPaths < < QDir : : current ( ) . absoluteFilePath ( settings ) ;
settingsPaths < < QDir : : current ( ) . absoluteFilePath ( settings ) ;
if ( CalamaresUtils : : haveExtraDirs ( ) )
for ( auto s : CalamaresUtils : : extraConfigDirs ( ) )
settingsPaths < < ( s + settings ) ;
settingsPaths < < CMAKE_INSTALL_FULL_SYSCONFDIR " /calamares/settings.conf " ; // String concat
settingsPaths < < CMAKE_INSTALL_FULL_SYSCONFDIR " /calamares/settings.conf " ; // String concat
settingsPaths < < CalamaresUtils : : appDataDir ( ) . absoluteFilePath ( settings ) ;
settingsPaths < < CalamaresUtils : : appDataDir ( ) . absoluteFilePath ( settings ) ;
}
}
@ -182,6 +188,9 @@ brandingFileCandidates( bool assumeBuilddir, const QString& brandingFilename )
{
{
if ( assumeBuilddir )
if ( assumeBuilddir )
brandingPaths < < ( QDir : : currentPath ( ) + QStringLiteral ( " /src/ " ) + brandingFilename ) ;
brandingPaths < < ( QDir : : currentPath ( ) + QStringLiteral ( " /src/ " ) + brandingFilename ) ;
if ( CalamaresUtils : : haveExtraDirs ( ) )
for ( auto s : CalamaresUtils : : extraDataDirs ( ) )
brandingPaths < < ( s + brandingFilename ) ;
brandingPaths < < QDir ( CMAKE_INSTALL_FULL_SYSCONFDIR " /calamares/ " ) . absoluteFilePath ( brandingFilename ) ;
brandingPaths < < QDir ( CMAKE_INSTALL_FULL_SYSCONFDIR " /calamares/ " ) . absoluteFilePath ( brandingFilename ) ;
brandingPaths < < CalamaresUtils : : appDataDir ( ) . absoluteFilePath ( brandingFilename ) ;
brandingPaths < < CalamaresUtils : : appDataDir ( ) . absoluteFilePath ( brandingFilename ) ;
}
}