Axel Dörfler f92aeedd7f User login: Fixed missing Deskbar tray icons.
* The mail_daemon could have been launched too early, which caused it
  not to be able to add its Deskbar icon. We don't really want a
  dependency to the Deskbar, though, which is why we only run the
  mail_daemon on the same event (which makes the Deskbar available
  at that point).
* Ideally, the mail_daemon should be smart enough to install its Deskbar
  icon once the Deskbar is available, though.
* Similar issue for the first login scripts. Here, we have a real
  dependency to the Deskbar which makes the script launch once the
  Deskbar is available.
* This finally fixes #12454.
2015-11-28 14:01:05 +01:00

74 lines
1.3 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
}
service x-vnd.Be-POST {
launch /system/servers/mail_daemon
if setting ~/config/settings/Mail/new_mail_daemon DaemonAutoStarts
on initial_volumes_mounted
no_safemode
legacy
}
job user-bootscript {
launch /bin/sh ~/config/settings/boot/UserBootscript
}
job check-daylight-saving-time {
launch /system/bin/dstcheck
}
job update-time {
launch /system/preferences/Time "" --update
}
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
requires x-vnd.Be-TSKB
}
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
}
}