fix stiff

This commit is contained in:
Xuan Sang LE 2018-02-28 16:40:28 +01:00
parent 4116573c71
commit c63d2b45f8
2 changed files with 13 additions and 6 deletions

View File

@ -126,6 +126,7 @@ self.OS.GUI =
#ok app
, "script"
launch: (app, args) ->
console.log "launching " + app
if not _OS.APP[app]
# first load it
_GUI.loadApp app,
@ -374,12 +375,8 @@ self.OS.GUI =
_GUI.buildSystemMenu()
# push startup services
# TODO: get services list from user setting
_GUI.pushServices [
"CoreServices/PushNotification",
"CoreServices/UserService",
"CoreServices/Spotlight",
"CoreServices/Calendar"
]
_GUI.pushServices _OS.setting.system.startup.services
(_GUI.launch a) for a in _OS.setting.system.startup.apps
#_GUI.launch "DummyApp"
# startup application here

View File

@ -17,6 +17,16 @@
] if not _OS.setting.VFS.mountpoints
_OS.setting.system = conf.system if conf.system
_OS.setting.system.startup = {
services: [
"CoreServices/PushNotification",
"CoreServices/UserService",
"CoreServices/Calendar",
"CoreServices/Spotlight"
],
apps: []
} if not _OS.setting.system.startup
_OS.setting.system.pkgpaths = [
"home:///.packages",
"os:///packages"