Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Add application pre-launches to boot loader#4

Merged
alicerunsonfedora merged 4 commits intoprospect-park-db2from
prospect-park-db2-bootloader
Sep 11, 2019
Merged

Add application pre-launches to boot loader#4
alicerunsonfedora merged 4 commits intoprospect-park-db2from
prospect-park-db2-bootloader

Conversation

@alicerunsonfedora
Copy link
Copy Markdown
Member

This PR makes the following changes:

  • Adds applicationShouldLaunchAtLogin() and applicationWillLaunchAtLogin methods to ASAppRepresentative
  • Adds gatherAllApplications() method to ASBootloaderCoreService
  • Changes boot method in the following ways:
    • Adds new bootView optional parameter to set the custom boot loader view
    • Checks all applications in AppKit and runs their applicationWillLaunchAtLogin if they are permitted to do so.
    • Shows boot screen after events rather than before all events
  • Updates documentation and fixes variable name error in Setup Assistant (was persistent.AS_SETUP_COMPLETE when it should have been persistent.AS_COMPLETED_SETUP)

… tasks on boot and optional bootView param to boot method

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
@gitpod-io-legacy-app
Copy link
Copy Markdown

Open in Gitpod - starts a development workspace for this pull request in code review mode and opens it in a browser IDE.

@alicerunsonfedora alicerunsonfedora requested a review from a team September 8, 2019 19:02
@alicerunsonfedora alicerunsonfedora changed the base branch from master to prospect-park-db2 September 8, 2019 19:12
if not persistent.AS_COMPLETED_SETUP:
ASSetup.startSetup(express=expressSetup, disclaimer=disclaimer)

for app in self.gatherAllApplications():
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be better to thread startup applications so it doesn't slow down the whole process.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So probably have a thread for each applicationWillLaunchAtLogin?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, run a seperate init thread per startup app, this is considerably safer.

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
if not persistent.AS_COMPLETED_SETUP:
ASSetup.startSetup(express=expressSetup, disclaimer=disclaimer)

print("INFO: Threading any startup services...")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this.

@alicerunsonfedora
Copy link
Copy Markdown
Member Author

To prevent conflicts, it's probably best to merge #7 first and pull those changes in.

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
…tloader, rebuild docs DB

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
@alicerunsonfedora alicerunsonfedora merged commit a5d1f7d into prospect-park-db2 Sep 11, 2019
@alicerunsonfedora alicerunsonfedora deleted the prospect-park-db2-bootloader branch September 11, 2019 18:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request 🚤 prospect-park

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants