mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-15 03:27:10 +00:00
Use MACRO_TO_STRING from lib_base.
This commit is contained in:
parent
4f71383557
commit
afe34121af
@ -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
|
||||
|
@ -549,9 +549,7 @@ void MainWindow::psFirstShow() {
|
||||
if(snapName.isEmpty()) {
|
||||
std::vector<QString> 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"
|
||||
|
@ -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");
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit afb1b61161d6e534c35382b91dc24c7225ed3e5a
|
||||
Subproject commit d383720357524af6ca9ee4ea714a29b28152bf2b
|
Loading…
Reference in New Issue
Block a user