Example #1
0
 public App open() {
   if (Settings.isWindows() || Settings.isLinux()) {
     int pid = _osUtil.openApp(_appName);
     _pid = pid;
     Debug.history("App.open " + this.toString());
     if (pid == 0) {
       Debug.error("App.open failed: " + _appName + " not found");
       return null;
     }
   } else {
     Debug.history("App.open " + this.toString());
     if (_osUtil.openApp(_appName) < 0) {
       Debug.error("App.open failed: " + _appName + " not found");
       return null;
     }
   }
   return this;
 }