xref: /haiku/data/launch/user (revision 1f52c921e27aa442370e1bd4adc021acf2b78b64)
1target desktop {
2	env /system/boot/SetupEnvironment
3
4	service x-vnd.Be-TRAK {
5		launch /system/Tracker
6		legacy
7		on initial_volumes_mounted
8	}
9
10	service x-vnd.Be-TSKB {
11		launch /system/Deskbar
12		on initial_volumes_mounted
13	}
14
15	job x-vnd.Haiku-LaunchBox {
16		launch /system/apps/LaunchBox
17		if setting ~/config/settings/LaunchBox/main_settings autostart
18		on initial_volumes_mounted
19		legacy
20		no_safemode
21	}
22
23	service x-vnd.Be-POST {
24		launch /system/servers/mail_daemon
25		if setting ~/config/settings/Mail/new_mail_daemon DaemonAutoStarts
26		on initial_volumes_mounted
27		no_safemode
28	}
29
30	job user-bootscript {
31		launch /bin/sh ~/config/settings/boot/UserBootscript
32	}
33
34	job check-daylight-saving-time {
35		launch /system/bin/dstcheck
36	}
37
38	job update-time {
39		launch /system/preferences/Time "" --update
40		if setting ~/config/settings/networktime\ settings "synchronize at boot"
41		on network_available
42	}
43
44	job first-login {
45		launch /bin/sh /system/boot/PostInstallScript "first login" ~/config/settings/first_login /boot/system/boot/first-login
46		if file_exists ~/config/settings/first_login
47		requires x-vnd.Be-TSKB
48	}
49
50	job create-installer-link {
51		# When run from a read-only medium a.k.a. live desktop
52		if {
53			read_only
54			file_exists /boot/system/apps/Installer
55		}
56		launch /bin/ln -sf /boot/system/apps/Installer ~/Desktop/Installer
57	}
58}
59
60target first_boot {
61	job x-vnd.Haiku-FirstBootPrompt
62}
63
64target installer {
65	job x-vnd.Haiku-Installer
66}
67
68run {
69	if {
70		file_exists /system/bin/FirstBootPrompt
71		or {
72			not file_exists /boot/home/config/settings/Locale\ settings
73			read_only
74		}
75	}
76	then {
77		first_boot
78	}
79	else {
80		desktop
81	}
82}
83