AntOS load automatically custom VFS handles if available

This commit is contained in:
lxsang
2021-10-12 22:26:40 +02:00
parent 5b125c288d
commit 9c06d88713
5 changed files with 46 additions and 413 deletions

View File

@ -1172,20 +1172,24 @@ namespace OS {
? result
: undefined;
}
// load VFSX
// GUI.refreshSystemMenu()
// GUI.buildSystemMenu()
// push startup services
// TODO: get services list from user setting
pushServices(
(() => {
const result = [];
for (let v of setting.system.startup.services) {
result.push(v);
}
return result;
})()
).then(function () {
Promise.all(
[OS.API.VFS.loadVFSX(true),
pushServices(
(() => {
const result = [];
for (let v of setting.system.startup.services) {
result.push(v);
}
return result;
})()
)
])
.then(function () {
setting.system.startup.apps.map((a) => {
launch(a, []);
});