haiku/data/launch/user
Augustin Cavalier a04b2f4c5e Launch app_server in user context.
This way, we get the user's environment variables, and so should
input_server, which is started by app_server.

This should, after 6 years, fix #12534. We may need to revisit this
when/if we add multiuser support, but that is a problem for another day.

Change-Id: I04698306bc68a585acd232e9f9d29c50bc170a1f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4506
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2021-10-26 19:20:53 +00:00

87 lines
1.7 KiB
Plaintext

env /system/boot/SetupEnvironment
service x-vnd.Haiku-app_server {
launch /system/servers/app_server
}
target desktop {
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 x-vnd.Haiku-LaunchBox {
launch /system/apps/LaunchBox
if setting ~/config/settings/LaunchBox/main_settings autostart
on initial_volumes_mounted
legacy
no_safemode
}
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
}
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
if setting ~/config/settings/networktime\ settings "synchronize at boot"
on network_available
}
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
}
}