[haiku-bugs] Re: [Haiku] #9427: FirstBootPrompt appears after installation when you first start.

  • From: "mmadia" <trac@xxxxxxxxxxxx>
  • Date: Sun, 03 Feb 2013 15:13:53 -0000

#9427: FirstBootPrompt appears after installation when you first start.
--------------------------------------------+----------------------------
   Reporter:  Premislaus                    |      Owner:  mmadia
       Type:  bug                           |     Status:  in-progress
   Priority:  normal                        |  Milestone:  R1
  Component:  Applications/FirstBootPrompt  |    Version:  R1/Development
 Resolution:                                |   Keywords:
 Blocked By:                                |   Blocking:
Has a Patch:  0                             |   Platform:  x86
--------------------------------------------+----------------------------

Comment (by mmadia):

 stippi,  would having FirstBootPrompt write the settings immediately upon
 launch be proper?  The following "works", but i'm not sure if the Locale
 settings file should be written prior to running PopulateLanguages() and
 _PopulateKeymaps().

 {{{
 diff --git a/src/apps/firstbootprompt/BootPromptWindow.cpp
 b/src/apps/firstbootprompt/BootPromptWindow.cpp
 index 113a7d7..b819133 100644
 --- a/src/apps/firstbootprompt/BootPromptWindow.cpp
 +++ b/src/apps/firstbootprompt/BootPromptWindow.cpp
 @@ -171,7 +171,7 @@ BootPromptWindow::BootPromptWindow()
         fKeymapsMenuField = new BMenuField("", "", new BMenu(""));
         fKeymapsMenuField->Menu()->SetLabelFromMarked(true);

 -       _InitCatalog(false);
 +       _InitCatalog(true);
         _PopulateLanguages();
         _PopulateKeymaps();
 }}}


 If so, then Bootscript could be changed to launch FirstBootPrompt always
 on read-only mediums and whenever the Locale settings file does not exist.

 {{{
 diff --git a/data/system/boot/Bootscript b/data/system/boot/Bootscript
 index a49439d..fa96901 100644
 --- a/data/system/boot/Bootscript
 +++ b/data/system/boot/Bootscript
 @@ -117,8 +117,8 @@ if [ "$SAFEMODE" != "yes" ]; then
  fi

  # Now ask the user if he wants to run the Installer or continue to the
 Desktop.
 -freshInstallIndicator=/boot/common/settings/fresh_install
 -if [ "$isReadOnly" = "yes" -o -e $freshInstallIndicator ]; then
 +localeSettings=/boot/home/config/settings/Locale\ settings
 +if [ "$isReadOnly" = "yes" -a ! -e "$localeSettings" ]; then
         /bin/FirstBootPrompt
         if [ $? -eq 0 ]; then
                 launchscript $SCRIPTS/Bootscript.cd
 @@ -190,6 +190,7 @@ if [ "$SAFEMODE" != "yes" ]; then
  fi

  # Check for fresh install and run post install scripts.
 +freshInstallIndicator=/boot/common/settings/fresh_install
  postInstallDir=/boot/common/boot/post_install
  if [ -e $freshInstallIndicator ]; then
         # wait a moment for things to calm down a bit
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9427#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: