-
-
Notifications
You must be signed in to change notification settings - Fork 403
[Windows] Move user directory away from Documents? #566
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
Comments
The simplified issue is: Controlled folder access sees Arduino as an untrusted application and hinders its access to the working/save directory
From the microsoft docs on Controlled folder, only Windows 10 and Windows Server 2019 users suffer from this.
Until the issue is solved by Arduino, simple hacks include
|
Hm, this sounds annoying. Moving the (default) sketchbook location outside of the Documents folder (i.e. one level up) does not seem a useful solution, because there it becomes less visible to to users. Sketches are documents, just like one could create a new text document and would want to save it in the documents folder. How does this work for other applications? Is there a mechanism that if you use a standard Windows "Save file..." dialog to select a file that you can bypass this protection? Or is every Windows application in the future going to run into issues saving a user's documents? And will that then result in applications saving to random other locations resulting in a big mess? I don't have too much right to speak here, not being a Windows user, but this seems like an issue that should maybe solved on the Windows (user) end rather than then by changing defaults on the arduino-cli side? |
I haven't seen evidence so far that this is causing problems for a significant number of users. I have been recording reports in my notes and I will transfer that information here so that it can be used in any future evaluation about whether the location needs to be moved or troubleshooting documentation produced:
|
Since this is not affecting many users, I would prefer to have a troubleshooting guide in the docs |
Bug Report / Discussion
The Pro IDE issue arduino/arduino-pro-ide#179 is caused by a Windows 10 feature called Controlled Folders (see also PowerShell/PowerShell#8857). As a consequence, action is required by users who have this feature active on their Windows installations:
Maybe it would be better to use another user sketch / library directory in the future in order to avoid such hassle, e.g.
$HOME\Arduino
instead of$HOME\Documents\Arduino
. However, that would also mean to provide migration utility, e.g. by offering to copy / move the existing sketches and libraries to the new location.If the user directory stays the same, the CLI and Pro IDE documentation and FAQ should explain how to resolve problems related to Controlled Folders.
The text was updated successfully, but these errors were encountered: