-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Portable Arduino #1211
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
Portable Arduino #1211
Conversation
Use Arduino on USB flash stick and without affecting anything on your PC. To use this feature, simply make a folder named "portable" in the application root folder where there are "hardware", "examples", "lib" and others. In this mode, file association setting is disabled in the preferences dialog. The sketch book folder is inside the "portable" folder. This may be confusing especially for Mac OSX "Arduino.app" folder.
The feature is useful to make students bring back their projects to home. I would like to see the feature be merged. |
👍 |
sgk, very nice feature, I'm in favor of merging it. C |
Thank you. Without the RelativePath class, the sketchbook location setting in preferences.txt will be recorded as an absolute path which includes Windows drive letter and directory structure outside the the installed tree of "portable" Arduino IDE. If the sketchbook location is recorded as an absolute path, the installed "portable" Arduino IDE will not work when the USB flash drive is mounted as different drive letter (Windows) or mounted on different mount point (Linux and Mac OS X). |
hello @sgk, after having merged and run the modified IDE, the sketchbook folder is indeed in the "portable" one just created while the preferences are still stored on my home folder under ".arduino" (I'm using linux) |
Hmmm. I confirm that my preferences.txt files is in PC. I may have trashed my correct version. I will check and fix this. |
I am not aware of the commit 24bef6b that moved initPlatform() and Preferences.init(null) in Base.java to the beginning of main(). This is my mistake to rebase my commits without checking this. I will fix and add a commit to this pull request soon. |
I think the commit above fixes this bug. I have not yet fully checked because I am on a train to go home now. |
thank you: merged into ide-1.5.x |
Thank you! |
I'd like to see the restriction on changing the sketchbook location removed, so that (for example) I can have all the executables on a flash drive or other portable location, and the sketchbook on a cloud directory like onedrive/dropbox/etc. |
Hi, great addition! |
@WestfW good advice. Please open a separate issue |
actually if you use "portable" folder is it not possible use a sketchbook folder outside the same disk (on Windows, if you have Arduino+portale folder on C:\ you cannot select a sketchbook on D:) And, if you are agree, i propose to insert the "portable" folder inside the Arduino .zip download by default. So the people that download the .zip automatically have this option. If a people download the .zip version he think that all the software remain inside the unzipped folder |
Use Arduino on USB flash stick without affecting anything on your PC.
To use this feature, simply make a folder named "portable" in the application
root folder where there are "hardware", "examples", "lib" and others.
In this mode, file association setting is disabled in the preferences dialog.
The sketch book folder is inside the "portable" folder. This may be confusing
especially for Mac OSX "Arduino.app" folder.