[remote dev] use the native launcher when running the frontend process on Linux (GTW-9619)

It's possible to switch back to the old sh script via 'rdct.use.native.client.launcher.on.linux' registry option.

GitOrigin-RevId: 07766a7b4d4ffc81de4d09abac81df16c1c2ba86
This commit is contained in:
Nikolay Chashnikov
2024-09-24 13:07:05 +02:00
committed by intellij-monorepo-bot
parent b3c0f4d21f
commit 390fcaf12c
2 changed files with 6 additions and 1 deletions

View File

@@ -16,5 +16,7 @@
description="Specify a positive value to make a client process started from an IDE listen for debug connections on that port."/>
<registryKey key="rdct.embedded.client.debug.suspend" defaultValue="false"
description="Enable this option to suspend a client process started from an IDE until a debugger connects to it."/>
<registryKey key="rdct.use.native.client.launcher.on.linux" defaultValue="true"
description="If enabled, the native launcher is used to run JetBrains Client process on Linux instead of jetbrains_client.sh script"/>
</extensions>
</idea-plugin>

View File

@@ -688,7 +688,10 @@ object CodeWithMeClientDownloader {
}
val shLauncherNames = listOf("jetbrains_client.sh", "cwm_guest.sh", "intellij_client.sh")
return findLauncher(guestRoot, shLauncherNames)
val eligibleLaunchers =
if (Registry.`is`("rdct.use.native.client.launcher.on.linux")) listOf("jetbrains_client") + shLauncherNames
else shLauncherNames
return findLauncher(guestRoot, eligibleLaunchers)
}
else -> error("Unsupported OS: ${SystemInfo.OS_NAME}")