diff --git a/zx b/zx index d7215b0..26b26f2 100755 --- a/zx +++ b/zx @@ -730,12 +730,9 @@ execute(State = #s{type = app, realm = Realm, name = Name, version = Version}, A true = register(zx, self()), ok = inets:start(), ok = log(info, "Starting ~ts", [package_string({Realm, Name, Version})]), - AppMod = list_to_atom(Name), - {ok, Pid} = AppMod:start(normal, Args), - Mon = monitor(process, Pid), - Shell = spawn(shell, start, []), - ok = log(info, "Your shell is ~p, application is: ~p", [Shell, Pid]), - exec_wait(State#s{pid = Pid, mon = Mon}); + {ok, Apps} = application:ensure_all_started(list_to_atom(Name)), + ok = log(info, "Started, ~tp", [Apps]), + exec_wait(State#s{}); execute(#s{type = lib, realm = Realm, name = Name, version = Version}, _) -> Message = "Lib ~ts is available on the system, but is not a standalone app.", PackageString = package_string({Realm, Name, Version}),