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

Show hint if resource path in CMakeCache.txt does not exist #12929

Merged
merged 2 commits into from Apr 21, 2024

Conversation

cyberchrime
Copy link
Contributor

If a CMakeCache.txt was located in the same directory as the mixxx binary, mixxx tried to read the resource path from the CMakeCache.txt file. However, if the resource path is not available, is simply prints an error and exits the application. Now a hint is displayed stating to use the command line option --resource-path <path>.

Additionally, this error is suppressed when a user requests help on command line options with --help.

@acolombier
Copy link
Contributor

While this change makes sense to improve developer experience, I'm afraid it could be be misleading if a final user is seeing this (e.g after accidentally moving/removing is res folder.

Perhaps a solution would be to add a CMake definition (ON by default OFF when building production artefacts) and give different message depending that definition. @mixxxdj/developer any objection?

@daschuer
Copy link
Member

Another solution would be to make the message conditional for the different sources of the res path.

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

Looks and works good. Thank you.

@daschuer daschuer merged commit 7b1a56d into mixxxdj:2.4 Apr 21, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants