Skip to content

Fix path to preferences.txt on Windows #6060

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

Closed
wants to merge 1 commit into from

Conversation

terrillmoore
Copy link

@terrillmoore terrillmoore commented Mar 11, 2017

The documentation was wrong for Windows, for locating the preferences file. This update matches modern Windows (7..10), but is probably not right for XP.

The documentation was just wrong for Windows, for locating the preferences file. This update matches modern Windows (7..10), but is probably not right for XP.
@mastrolinux mastrolinux added the in progress Work on this item is in progress label Mar 11, 2017
@terrillmoore
Copy link
Author

Sorry, I see that I missed a trailing '*' in the markdown, which messes up formatting. I'll resubmit.

@mastrolinux mastrolinux removed the in progress Work on this item is in progress label Mar 11, 2017
@terrillmoore terrillmoore deleted the patch-1 branch March 11, 2017 19:39
@PaulStoffregen
Copy link
Contributor

Actually, on Macintosh the path is ~/Library/Arduino15/preferences.txt

@PaulStoffregen
Copy link
Contributor

And on Windows, the unix "~" syntax doesn't really apply. The correct syntax is: %LocalAppData%/Arduino15/preferences.txt

@terrillmoore
Copy link
Author

Well... actually, if you're using git bash on WIndows, which practically everybody does these days, ~/AppData .... is the easiest way to get to the file.

If not using Git Bash, then we should replace / by \ for all Windows paths, because / is sometimes rejected by overzealous parsers.

@matthijskooijman
Copy link
Collaborator

@terrillmoore, for future reference, you could have force-pushed to your original branch and have this PR updated instead of creating a new one.

@PaulStoffregen
Copy link
Contributor

PaulStoffregen commented Mar 14, 2017

using git bash on WIndows, which practically everybody does these days

[citation needed]

@terrillmoore
Copy link
Author

@terrillmoore, for future reference, you could have force-pushed to your original branch and have this PR updated instead of creating a new one.

Thanks, @matthijskooijman I'll bear that in mind.

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.

4 participants