This commit is contained in:
Bram Veenboer
2011-02-27 17:24:38 +00:00
parent b1e3f317a3
commit 7b54defcda

View File

@@ -21,6 +21,7 @@ public class CMDApplication extends Application {
public void initialise() throws ApplicationInitialiseException { public void initialise() throws ApplicationInitialiseException {
String key = String.format("%s\\%s", REGISTRY, program); String key = String.format("%s\\%s", REGISTRY, program);
// Check of naam is gevonden in register
String path = Native.getValue(key); String path = Native.getValue(key);
try { try {
String command = path.startsWith("\"") ? path : String.format("\"%s\"", path); String command = path.startsWith("\"") ? path : String.format("\"%s\"", path);