mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-253347 [eel] Parse the system path using the Eel descriptor
GitOrigin-RevId: 62e3d755727eea8b3bba0be6473e08d10a3166a4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d376e2ad5d
commit
0fb47da3ba
@@ -137,8 +137,13 @@ object EelPathUtils {
|
||||
@RequiresBackgroundThread(generateAssertion = false)
|
||||
fun getSystemFolder(eel: EelApi): Path {
|
||||
val selector = PathManager.getPathsSelector() ?: "IJ-Platform"
|
||||
val userHomeFolder = eel.userInfo.home.asNioPath().toString()
|
||||
return Path.of(PathManager.getDefaultSystemPathFor(eel.platform.toOs(), userHomeFolder, selector, eel.exec.fetchLoginShellEnvVariablesBlocking()))
|
||||
val systemPath = PathManager.getDefaultSystemPathFor(
|
||||
eel.platform.toOs(),
|
||||
eel.userInfo.home.toString(),
|
||||
selector,
|
||||
eel.exec.fetchLoginShellEnvVariablesBlocking()
|
||||
)
|
||||
return EelPath.parse(systemPath, eel.descriptor).asNioPath()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
|
||||
Reference in New Issue
Block a user