add PackageFileHandle + support for library definition + minor fix

This commit is contained in:
lxsang
2020-08-04 19:51:32 +02:00
parent b86565212a
commit b1649016f4
6 changed files with 87 additions and 20 deletions

View File

@ -571,16 +571,24 @@ namespace OS {
// first load it
loadApp(app)
.then((a) =>
PM.createProcess(
app,
application[app],
args
).catch((e) =>
announcer.osfail(
__("Unable to launch: {0}", app),
e
{
if (!application[app]){
return announcer.oserror(
__("{0} is not an application", app),
API.throwe(__("Application not found"))
);
}
PM.createProcess(
app,
application[app],
args
).catch((e) =>
announcer.osfail(
__("Unable to launch: {0}", app),
e
)
)
)
}
)
.catch((e) =>
announcer.osfail(__("Unable to launch: {0}", app), e)