From db42c5bc746393416ad7d2a9b3244761872435e3 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 14 Sep 2021 13:36:11 +0100 Subject: [PATCH] JAL-2422 Also look in ~/Applications for ChimeraX on macOS --- src/ext/edu/ucsf/rbvi/strucviz2/StructureManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ext/edu/ucsf/rbvi/strucviz2/StructureManager.java b/src/ext/edu/ucsf/rbvi/strucviz2/StructureManager.java index 9078d12..0a248cf 100644 --- a/src/ext/edu/ucsf/rbvi/strucviz2/StructureManager.java +++ b/src/ext/edu/ucsf/rbvi/strucviz2/StructureManager.java @@ -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; } -- 1.7.10.2