X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=src%2Fjalview%2Fext%2Fpymol%2FPymolManager.java;h=d3b8eceb1a1f3ca7c3e0e2462fb8931a58dfde35;hp=1acce5e3ae789f863672604e2a54d419a1c86a70;hb=2c1fabdc3d0b711ebcc844c846fefa61d4e58bd8;hpb=483ecb5e4541537778844529cc93204f9124b68d diff --git a/src/jalview/ext/pymol/PymolManager.java b/src/jalview/ext/pymol/PymolManager.java index 1acce5e..d3b8ece 100644 --- a/src/jalview/ext/pymol/PymolManager.java +++ b/src/jalview/ext/pymol/PymolManager.java @@ -100,19 +100,22 @@ public class PymolManager } else if (os.startsWith("Windows")) { - // todo Windows installation path(s) - for (String root : new String[] - { - String.format("%s\\AppData\\Local", System.getProperty("user.home")), + for (String root : new String[] { + String.format("%s\\AppData\\Local", System.getProperty("user.home")), // default user path + "\\ProgramData", "C:\\ProgramData", // this is the default install path "for everyone" + System.getProperty("user.home"), "\\Program Files", "C:\\Program Files", "\\Program Files (x86)", "C:\\Program Files (x86)" }) { - for (String binary : new String [] {"PyMOLWinWithConsole.bat", "PyMOLWin.exe"}) - { - pathList.add(String.format("%s\\Schrodinger\\PyMOL2\\%s", root, binary)); - } + for (String path : new String [] { + "Schrodinger\\PyMOL2", "PyMOL" }) + { + for (String binary : new String [] {"PyMOLWinWithConsole.bat"}) + { + pathList.add(String.format("%s\\%s\\%s", root, path, binary)); + } + } } - } else if (os.startsWith("Mac")) {