JAL-2422 Also look in ~/Applications for ChimeraX on macOS
authorBen Soares <b.soares@dundee.ac.uk>
Tue, 14 Sep 2021 12:36:11 +0000 (13:36 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Tue, 14 Sep 2021 12:36:11 +0000 (13:36 +0100)
src/ext/edu/ucsf/rbvi/strucviz2/StructureManager.java

index 9078d12..0a248cf 100644 (file)
@@ -1040,9 +1040,15 @@ public class StructureManager
         pathList.add(
                 String.format("/Applications/%s-%s.app/Contents/MacOS/%s",
                         chimera, version, chimeraExe));
+        pathList.add(
+                String.format("%s/Applications/%s-%s.app/Contents/MacOS/%s",
+                        System.getProperty("user.home"), chimera, version,
+                        chimeraExe));
       }
       pathList.add(String.format("/Applications/%s.app/Contents/MacOS/%s",
               chimera, chimeraExe));
+      pathList.add(String.format("%s/Applications/%s.app/Contents/MacOS/%s",
+              System.getProperty("user.home"), chimera, chimeraExe));
     }
     return pathList;
   }