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:
+30
-6
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user