mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-215497 jbr/bin/java Access Denied during update from IC-192.4205.45 to IC-192.4488.21
IDEA-223576 Impossible to update Pycharm 2019.1 GitOrigin-RevId: 01edfd0baa769dba7ccf10f9c16a3eaa18ef12ab
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ea5d1296c7
commit
edd3eb3b60
+3
-1
@@ -156,8 +156,10 @@ object UpdateInstaller {
|
||||
val jnaCopy = jna.copyTo(File(tempDir, jna.name), true)
|
||||
val jnaUtilsCopy = jnaUtils.copyTo(File(tempDir, jnaUtils.name), true)
|
||||
|
||||
val homePath = Paths.get(PathManager.getHomePath())
|
||||
val path = if (Files.isSymbolicLink(homePath)) Files.readSymbolicLink(homePath).toString() else PathManager.getHomePath()
|
||||
var java = System.getProperty("java.home")
|
||||
if (FileUtil.isAncestor(PathManager.getHomePath(), java, true)) {
|
||||
if (FileUtil.isAncestor(path, java, true)) {
|
||||
val javaCopy = File(tempDir, "jre")
|
||||
if (javaCopy.exists()) FileUtil.delete(javaCopy)
|
||||
FileUtil.copyDir(File(java), javaCopy)
|
||||
|
||||
Reference in New Issue
Block a user