2 * Copyright 2010, Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT License.
7 #include "BootPrompt.h"
12 #include <LaunchRoster.h>
15 #include "BootPromptWindow.h"
18 static int sExitValue
;
33 const char* kAppSignature
= "application/x-vnd.Haiku-FirstBootPrompt";
36 BootPromptApp::BootPromptApp()
38 BApplication(kAppSignature
)
44 BootPromptApp::MessageReceived(BMessage
* message
)
46 switch (message
->what
) {
47 case MSG_BOOT_DESKTOP
:
48 BLaunchRoster().Target("desktop");
50 PostMessage(B_QUIT_REQUESTED
);
52 case MSG_RUN_INSTALLER
:
53 BLaunchRoster().Target("installer");
55 PostMessage(B_QUIT_REQUESTED
);
59 BApplication::MessageReceived(message
);
65 BootPromptApp::ReadyToRun()
67 // Prompt the user to select his preferred language.
68 new BootPromptWindow();