We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94fd016 commit 104a37cCopy full SHA for 104a37c
1 file changed
uicdm/src/main/java/ucar/nc2/ui/ToolsUI.java
@@ -1524,11 +1524,14 @@ public void setMessage(SocketMessage.Event event) {
1524
}
1525
1526
if (!configRead) {
1527
+ // if System.getProperty("user.home") is set, look under user_home/.unidata for nj22Config.xml,
1528
+ // otherwise look under the relative directory .unidata
1529
String filename = XMLStore.makeStandardFilename(".unidata", "nj22Config.xml");
1530
File f = new File(filename);
1531
if (f.exists()) {
1532
try (FileInputStream fis = new FileInputStream(filename)) {
1533
StringBuilder errlog = new StringBuilder();
1534
+ RuntimeConfigParser.read(fis, errlog);
1535
System.out.println(errlog);
1536
} catch (IOException ioe) {
1537
log.warn("Error reading {} = {}", filename, ioe.getMessage());
0 commit comments