xref: /haiku/data/launch/user (revision 0fe022fd0d6d600863555f5a556ab5a5273d20e0)
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	service x-vnd.Be-POST {
16		launch /system/servers/mail_daemon
17		if setting ~/config/settings/Mail/new_mail_daemon DaemonAutoStarts
18		on initial_volumes_mounted
19		no_safemode
20	}
21
22	job user-bootscript {
23		launch /bin/sh ~/config/settings/boot/UserBootscript
24	}
25
26	job check-daylight-saving-time {
27		launch /system/bin/dstcheck
28	}
29
30	job update-time {
31		launch /system/preferences/Time "" --update
32	}
33
34	job first-login {
35		launch /bin/sh /system/boot/PostInstallScript "first login" ~/config/settings/first_login /boot/system/boot/first-login
36		if file_exists ~/config/settings/first_login
37		requires x-vnd.Be-TSKB
38	}
39
40	job create-installer-link {
41		# When run from a read-only medium a.k.a. live desktop
42		if {
43			read_only
44			file_exists /boot/system/apps/Installer
45		}
46		launch /bin/ln -sf /boot/system/apps/Installer ~/Desktop/Installer
47	}
48}
49
50target first_boot {
51	job x-vnd.Haiku-FirstBootPrompt
52}
53
54target installer {
55	job x-vnd.Haiku-Installer
56}
57
58run {
59	if {
60		file_exists /system/bin/FirstBootPrompt
61		or {
62			not file_exists /boot/home/config/settings/Locale\ settings
63			read_only
64		}
65	}
66	then {
67		first_boot
68	}
69	else {
70		desktop
71	}
72}
73