diff --git a/Telegram/cmake/telegram_options.cmake b/Telegram/cmake/telegram_options.cmake index 81f987fcc..a2086de8a 100644 --- a/Telegram/cmake/telegram_options.cmake +++ b/Telegram/cmake/telegram_options.cmake @@ -91,10 +91,6 @@ if (TDESKTOP_DISABLE_DBUS_INTEGRATION) endif() if (NOT TDESKTOP_LAUNCHER_BASENAME) - if (NOT DESKTOP_APP_USE_PACKAGED) - set(TDESKTOP_LAUNCHER_BASENAME "telegramdesktop") - elseif (LINUX) - message(FATAL_ERROR "Please provide .desktop file base name (-D TDESKTOP_LAUNCHER_BASENAME=[basename]).") - endif() + set(TDESKTOP_LAUNCHER_BASENAME "telegramdesktop") endif() target_compile_definitions(Telegram PRIVATE TDESKTOP_LAUNCHER_BASENAME=${TDESKTOP_LAUNCHER_BASENAME})