haiku/data/launch/user
Axel Dörfler d2eca26b73 Moved per user post install actions to first-login script.
* The same mechanism (and the same PostInstallScript) is used for this.
* If a file first_login exists in ~/config/settings/boot, the first-login
  scripts are launched, and the file removed.
* This fixes adding the deskbar tray icons even when there is no Deskbar
  running yet (for example on first boot when the FirstBootPrompt
  starts), or, IOW bug #12275.
2015-10-19 21:27:02 +02:00

61 lines
1.0 KiB
Plaintext

target desktop {
env /system/boot/SetupEnvironment
service x-vnd.Be-TRAK {
launch /system/Tracker
legacy
on {
initial_volumes_mounted
}
}
service x-vnd.Be-TSKB {
launch /system/Deskbar
on {
initial_volumes_mounted
}
}
job user-bootscript {
launch /bin/sh ~/config/settings/boot/UserBootscript
}
job first-login {
launch /bin/sh /system/boot/PostInstallScript "first login" ~/config/settings/first_login /boot/system/boot/first-login
if file_exists ~/config/settings/first_login
}
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 ~/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
}
}