From 3b327d93976075d77d4b0fa8f555b33b0e5021b1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 26 Feb 2020 20:12:51 +0400 Subject: [PATCH] Fix launching with data in ~/.TelegramDesktop Regression was introduced in 60612635ef. Fixes #7289. --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 609c3d7e5..47a3bc170 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -400,7 +400,9 @@ QString psAppDataPath() { if (!home.isEmpty()) { auto oldPath = home + qsl(".TelegramDesktop/"); auto oldSettingsBase = oldPath + qsl("tdata/settings"); - if (QFile(oldSettingsBase + '0').exists() || QFile(oldSettingsBase + '1').exists()) { + if (QFile(oldSettingsBase + '0').exists() + || QFile(oldSettingsBase + '1').exists() + || QFile(oldSettingsBase + 's').exists()) { return oldPath; } }