mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Re-use fontconfig fallback code in snap
This commit is contained in:
@@ -96,7 +96,7 @@ bool RunShellCommand(const QByteArray &command) {
|
||||
}
|
||||
|
||||
void FallbackFontConfig() {
|
||||
#ifdef TDESKTOP_USE_FONT_CONFIG_FALLBACK
|
||||
#ifdef TDESKTOP_USE_FONTCONFIG_FALLBACK
|
||||
const auto custom = cWorkingDir() + "tdata/fc-custom-1.conf";
|
||||
const auto finish = gsl::finally([&] {
|
||||
if (QFile(custom).exists()) {
|
||||
@@ -131,7 +131,7 @@ void FallbackFontConfig() {
|
||||
}
|
||||
|
||||
QFile(":/fc/fc-custom.conf").copy(custom);
|
||||
#endif // TDESKTOP_USE_FONT_CONFIG_FALLBACK
|
||||
#endif // TDESKTOP_USE_FONTCONFIG_FALLBACK
|
||||
}
|
||||
|
||||
bool GenerateDesktopFile(
|
||||
|
Reference in New Issue
Block a user