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

Fix --pref-dir option that is broken since v6.2.05 #2097

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeojr
Copy link

@jeojr jeojr commented Jun 8, 2022

The preferences folder setup was being done before parsing the program
arguments, so before parsing the --pref-dir option.

I'm moving only the code block that does the preferences folder configuration to right after the while loop that does the argv parsing.

To be more specific, the commit 0b67f1d is what broke --pref-dir. In sys/praat.cpp, a code block (lines 1470 to 1556 in the previous commit - a3574e3) was moved to before the argv parsing.

P.S. Before the "argv while loop" there is a for to trace argv. I think it needs to come after too, after parsing the --trace option.

The preferences folder setup was being done before parsing the program
arguments, so before parsing the --pref-dir option.
@jeojr jeojr changed the title Fixing the --pref-dir option that is broken since v6.2.05 Fix the --pref-dir option that is broken since v6.2.05 Jun 8, 2022
@jeojr jeojr changed the title Fix the --pref-dir option that is broken since v6.2.05 Fix --pref-dir option that is broken since v6.2.05 Jun 8, 2022
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

1 participant