[platform] suppressing script launcher notifications until TBA is ready (IJPL-443; TBX-11868)

GitOrigin-RevId: 453c772050965d0aa290fead6ff2056acf22ce92
This commit is contained in:
Roman Shevchenko
2024-05-02 18:55:16 +02:00
committed by intellij-monorepo-bot
parent 2ecf54c8e6
commit e96476abec

View File

@@ -23,6 +23,7 @@ import com.intellij.openapi.application.ex.ApplicationManagerEx
import com.intellij.openapi.components.service
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.ui.Messages
import com.intellij.openapi.updateSettings.impl.ExternalUpdateManager
import com.intellij.openapi.util.NlsContexts
import com.intellij.openapi.util.SystemInfo
import com.intellij.openapi.util.io.NioFiles
@@ -246,7 +247,11 @@ private suspend fun checkEnvironment() {
}
private fun checkLauncher() {
if ((SystemInfo.isWindows || SystemInfo.isLinux) && !System.getProperty("ide.native.launcher").toBoolean()) {
if (
(SystemInfo.isWindows || SystemInfo.isLinux) &&
!System.getProperty("ide.native.launcher").toBoolean() &&
!ExternalUpdateManager.isCreatingDesktopEntries()
) {
val baseName = ApplicationNamesInfo.getInstance().scriptName
val binName = baseName + if (SystemInfo.isWindows) "64.exe" else ""
val scriptName = baseName + if (SystemInfo.isWindows) ".bat" else ".sh"