haiku/data/launch/user
Axel Dörfler 1ec3f11d97 Create installer link in live mode, check existence.
* FirstBootPrompt as well as the Installer do not exist on the
  minimum image, so take this into account when making the startup
  target decisions.
2015-07-22 20:44:48 +02:00

47 lines
712 B
Plaintext

target desktop {
env /system/boot/SetupEnvironment
service x-vnd.Be-TRAK {
launch /system/Tracker
legacy
}
service x-vnd.Be-TSKB {
launch /system/Deskbar
legacy
}
job create-installer-link {
# When run from a read-only medium a.k.a. live desktop
if {
read_only
file_exists /boot/system/apps/Installer
}
launch /bin/ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
}
}
target first_boot {
job x-vnd.Haiku-FirstBootPrompt
}
target installer {
job x-vnd.Haiku-Installer
}
run {
if {
file_exists /system/bin/FirstBootPrompt
or {
not file_exists /boot/home/config/settings/Locale\ settings
read_only
}
}
then {
first_boot
}
else {
desktop
}
}