The story of system.startup.startupScript

オープン
#5 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
活発
領域
documentation

調査の方向性

Start with the system.startup.startupScript entry point and compare its source with the twelve startup stages listed in the issue. The issue names no target documentation file, test, or required output, so clarify where the explanation should live and what format marks the work as complete.

索引モデルが issue の本文から書いたものです。

説明

I asked Claude to summarize what system.startup.startupScript does. It's very good at understanding the whole of what a 309-line script written over many years by many people, does.

  1. Bails if it already ran. system.temp.Frontier existing is the "already started" flag; otherwise it creates that table, stamps the startup time, and sets startingUp = true.

  2. Records where the root file is -- Frontier.pathToRoot and Frontier.pathstring.

  3. Starts the scheduler and fixes the clock -- scheduler.init, scheduler2.init, then makes sure the everyMinute, hourly, and overnight tasks are set in the future (overnight keeps its hour, e.g. 3AM).

  4. Opens the About window (if user.prefs.openAboutWindow says so) and starts the log (log.startup).

  5. Runs the external startup commands file -- opmlStartupCommands.txt next to the app, if present -- then calls Frontier.enableAgents.

  6. Opens guest databases -- everything in user.databases with openOnStartup true, running each one's #startup script if its runStartupScript is true.

  7. The init parade -- html.init, webserver.init, betty.init, people.init, custody.init, soap.init, export.init, and mainResponder.startup on the OPML Editor.

  8. First-run business -- on user.prefs.firstRootRun: license agreement, the user-info dialog, root updates.

  9. Builds the menubar, initializes proxy prefs, installs Tools (in a try, so a Tools failure can't kill the startup), and finds the default browser on Windows.

  10. Calls system.callbacks.startup -- the user's own startup scripts.

  11. Starts the daemons -- inetd.start, last on purpose so servers come up after everything else is ready.

  12. Clears startingUp -- the script's own comment: "signal to all who care, let the hits begin!"

主要言語
言語のデータがありません
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scripting/helloFrontier のほかの issue

scripting/helloFrontier の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。