-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Correct path to preferences file for Windows #6061
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
Conversation
The path to `preferences.txt` was incorrect for Windows. I did not update the HISTORY for this change, as this is just correcting a typo. The path as given is right for Windows 7 and later; I think it is right for Vista, wrong for XP, but do not have systems for testing.
The macOS/Mac OS X path should also be documented. I believe it's |
I don't have a Mac for testing. Perhaps issues should be filed for:
For 1 & 2, My feeling is that anyone using Arduino from the command line on Windows is very likely to be using git bash, or the like, not |
I don't have a Mac either, I found that information on the forum so I wouldn't feel comfortable submitting a PR for the change without verification.
It seems most simple to just remove any specific sketchbook path descriptions for all OSs from the documentation and instead refer people to
I don't think that's a safe assumption. CLI will frequently not actually be used directly from the command line but instead from batch files, shortcuts, or other applications. |
@@ -212,7 +212,9 @@ EXIT STATUS | |||
|
|||
FILES | |||
----- | |||
*~/.arduino15/preferences.txt*:: | |||
|
|||
*~/AppData/Local/Arduino15/preferences.txt* (Windows):: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the correct path in windows is %APPDATA%/Local/Arduino15/preferences.txt
, any other way to express it is not compliant (although it's used by git shell or cygwin or similar)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also %LOCALAPPDATA%/Arduino15/preferences.txt
*~/.arduino15/preferences.txt*:: | ||
|
||
*~/AppData/Local/Arduino15/preferences.txt* (Windows):: | ||
*~/.arduino15/preferences.txt* (Mac OS X and Linux):: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On osx the path is $HOME/Library/Arduino15/preferences.txt
, just checked. The Linux one is ok but I'd replace ~
with $HOME
The path to
preferences.txt
was incorrect for Windows. I did not update the HISTORY for this change, as this is just correcting a typo.The path as given is right for Windows 7 and later; I think it is right for Vista, wrong for XP, but do not have systems for testing.