diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index 25473426f..e7afa1912 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -249,12 +249,11 @@ void Launcher::init() { QApplication::setApplicationName(qsl("TelegramDesktop")); #ifdef TDESKTOP_LAUNCHER_FILENAME -#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) #V -#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING(V) TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) - QApplication::setDesktopFileName(qsl(TDESKTOP_LAUNCHER_FILENAME_TO_STRING(TDESKTOP_LAUNCHER_FILENAME))); + QApplication::setDesktopFileName(qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_FILENAME))); #elif defined(Q_OS_LINUX) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) QApplication::setDesktopFileName(qsl("telegramdesktop.desktop")); #endif + #ifndef OS_MAC_OLD QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); #endif // OS_MAC_OLD diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index 0cc74d19a..7d7ea6cdf 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -549,9 +549,7 @@ void MainWindow::psFirstShow() { if(snapName.isEmpty()) { std::vector possibleDesktopFiles = { #ifdef TDESKTOP_LAUNCHER_FILENAME -#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) #V -#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING(V) TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) - TDESKTOP_LAUNCHER_FILENAME_TO_STRING(TDESKTOP_LAUNCHER_FILENAME), + MACRO_TO_STRING(TDESKTOP_LAUNCHER_FILENAME), #endif // TDESKTOP_LAUNCHER_FILENAME "telegramdesktop.desktop", "Telegram.desktop" diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index cf66fe6ee..7c4441152 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -139,10 +139,8 @@ NotificationData::NotificationData( _hints["category"] = qsl("im.received"); #ifdef TDESKTOP_LAUNCHER_FILENAME -#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) #V -#define TDESKTOP_LAUNCHER_FILENAME_TO_STRING(V) TDESKTOP_LAUNCHER_FILENAME_TO_STRING_HELPER(V) _hints["desktop-entry"] = - qsl(TDESKTOP_LAUNCHER_FILENAME_TO_STRING(TDESKTOP_LAUNCHER_FILENAME)) + qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_FILENAME)) .remove(QRegExp(qsl("\\.desktop$"), Qt::CaseInsensitive)); #else _hints["desktop-entry"] = qsl("telegramdesktop"); diff --git a/Telegram/lib_base b/Telegram/lib_base index afb1b6116..d38372035 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit afb1b61161d6e534c35382b91dc24c7225ed3e5a +Subproject commit d383720357524af6ca9ee4ea714a29b28152bf2b