mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-17 14:29:56 +02:00
AntOS load automatically custom VFS handles if available
This commit is contained in:
@ -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, []);
|
||||
});
|
||||
|
Reference in New Issue
Block a user