Ticket #7595: installer.patch
File installer.patch, 1.6 KB (added by , 13 years ago) |
---|
-
src/apps/installer/InstallerWindow.cpp
654 654 void 655 655 InstallerWindow::_LaunchBootman() 656 656 { 657 // TODO: Currently bootman always tries to install to the "first" harddisk. 658 // If/when it later supports being installed to a certain harddisk, we 659 // would have to pass it the disk that contains the target partition here. 657 // TODO: Currently BootManager always tries to install to the "first" 658 // harddisk. If/when it later supports being installed to a certain 659 // harddisk, we would have to pass it the disk that contains the target 660 // partition here. 660 661 if (be_roster->Launch(BOOTMAN_SIG) != B_OK) { 661 662 // Try really hard to launch it. It's very likely that this fails, 662 663 // when we run from the CD and there is only an incomplete mime 663 664 // database for example... 664 665 BPath path; 665 if (find_directory(B_SYSTEM_ BIN_DIRECTORY, &path) != B_OK666 || path.Append(" bootman") != B_OK) {667 path.SetTo("/boot/system/ bin/bootman");666 if (find_directory(B_SYSTEM_APPS_DIRECTORY, &path) != B_OK 667 || path.Append("BootManager") != B_OK) { 668 path.SetTo("/boot/system/apps/BootManager"); 668 669 } 669 670 BEntry entry(path.Path()); 670 671 entry_ref ref; 671 672 if (entry.GetRef(&ref) != B_OK || be_roster->Launch(&ref) != B_OK) { 672 BAlert* alert = new BAlert("error", B_TRANSLATE("Boot man, the "673 BAlert* alert = new BAlert("error", B_TRANSLATE("BootManager, the " 673 674 "application to configure the Haiku boot menu, could not be " 674 675 "launched."), B_TRANSLATE("OK")); 675 676 alert->Go();