Skip to content

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build/shared/manpage.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ EXIT STATUS

FILES
-----
*~/.arduino15/preferences.txt*::

*~/AppData/Local/Arduino15/preferences.txt* (Windows)::
Copy link
Member

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)

Copy link
Member

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* (Mac OS X and Linux)::
Copy link
Member

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

This file stores the preferences used for the IDE, building and
uploading sketches.

Expand Down