launch_daemon: Added run directive.

* Allows to conditionally (or unconditionally) launch targets.
* Including tests for the settings parser.
* FirstBootPrompt is now launched when deemed necessary (as in
  the Bootscript).
This commit is contained in:
Axel Dörfler
2015-07-22 20:43:08 +02:00
parent d91addd24c
commit 004cd6709d
5 changed files with 268 additions and 7 deletions
+30 -6
View File
@@ -1,9 +1,33 @@
service x-vnd.Be-TRAK {
launch /system/Tracker
legacy
target desktop {
service x-vnd.Be-TRAK {
launch /system/Tracker
legacy
}
service x-vnd.Be-TSKB {
launch /system/Deskbar
legacy
}
}
service x-vnd.Be-TSKB {
launch /system/Deskbar
legacy
target first_boot {
job x-vnd.Haiku-FirstBootPrompt {
launch /system/apps/FirstBootPrompt
legacy
}
}
run {
if {
or {
not file_exists /boot/home/config/settings/Locale\ settings
read_only
}
}
then {
first_boot
}
else {
desktop
}
}