mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] makes "edit custom VM options" action work with relative paths
This commit is contained in:
@@ -174,6 +174,7 @@ public class VMOptions {
|
||||
return null;
|
||||
}
|
||||
|
||||
vmOptionsFile = new File(vmOptionsFile).getAbsolutePath();
|
||||
if (!FileUtil.isAncestor(PathManager.getHomePath(), vmOptionsFile, true)) {
|
||||
// a file is located outside the IDE installation - meaning it is safe to overwrite
|
||||
return new File(vmOptionsFile);
|
||||
|
||||
Reference in New Issue
Block a user