xref: /haiku/data/launch/user (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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	}
41
42	job first-login {
43		launch /bin/sh /system/boot/PostInstallScript "first login" ~/config/settings/first_login /boot/system/boot/first-login
44		if file_exists ~/config/settings/first_login
45		requires x-vnd.Be-TSKB
46	}
47
48	job create-installer-link {
49		# When run from a read-only medium a.k.a. live desktop
50		if {
51			read_only
52			file_exists /boot/system/apps/Installer
53		}
54		launch /bin/ln -sf /boot/system/apps/Installer ~/Desktop/Installer
55	}
56}
57
58target first_boot {
59	job x-vnd.Haiku-FirstBootPrompt
60}
61
62target installer {
63	job x-vnd.Haiku-Installer
64}
65
66run {
67	if {
68		file_exists /system/bin/FirstBootPrompt
69		or {
70			not file_exists /boot/home/config/settings/Locale\ settings
71			read_only
72		}
73	}
74	then {
75		first_boot
76	}
77	else {
78		desktop
79	}
80}
81