Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This app rootdir #220

Merged
merged 2 commits into from
Jul 12, 2022
Merged

This app rootdir #220

merged 2 commits into from
Jul 12, 2022

Conversation

CarlosNihelton
Copy link
Collaborator

Currently the splash executable (the slide show) is located inside the appx directory at the same level as the launcher. Soon we'll have the new OOBE located in the same directory, but a different filename. The patch feature being drafted in #217 will likely store files in a subdirectory as well. So, to avoid duplication, this PR extracts the logic to find this app root directory into it's own function, so we can append subdirectories and filenames as we wish.

The usage is illustrated in the ApplicationStrategy.cpp where we locate the ubuntu_wsl_splash.exe relative to that path.

The extracted function returns the directory where this app is
installed into. It was very local to the splash enabled app strategy.
Removing this bit will benefit the new strategy related to the OOBE on Windows.
Also, the patch feature will likely need this piece of logic as well.
@CarlosNihelton CarlosNihelton marked this pull request as ready for review July 11, 2022 21:00
Copy link
Collaborator

@EduardGomezEscandell EduardGomezEscandell left a comment

Choose a reason for hiding this comment

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

Indeed this will be useful for #217.

Approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants