Change fc-custom.conf condition to DESKTOP_APP_USE_PACKAGED

This commit is contained in:
Ilya Fedin 2020-01-17 15:50:00 +04:00 committed by John Preston
parent d24735b217
commit 0bcc4befa1

View file

@ -49,7 +49,7 @@ bool RunShellCommand(const QByteArray &command) {
}
void FallbackFontConfig() {
#ifndef TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION
#ifndef DESKTOP_APP_USE_PACKAGED
const auto custom = cWorkingDir() + "tdata/fc-custom-1.conf";
const auto finish = gsl::finally([&] {
if (QFile(custom).exists()) {
@ -84,7 +84,7 @@ void FallbackFontConfig() {
}
QFile(":/fc/fc-custom.conf").copy(custom);
#endif // TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION
#endif // !DESKTOP_APP_USE_PACKAGED
}
} // namespace