Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Portable Arduino #1211

Closed
wants to merge 2 commits into
from

Conversation

8 participants
Contributor

sgk commented Jan 11, 2013

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.

explorer

@sgk sgk Portable Arduino
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.
c2f54ba

The feature is useful to make students bring back their projects to home. I would like to see the feature be merged.

mactkg commented Jan 13, 2013

👍

Owner

cmaglie commented Jan 14, 2013

sgk,

very nice feature, I'm in favor of merging it.
I see that you added a RelativePath class, can I ask you why you need it?

C

Contributor

sgk commented Jan 14, 2013

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).

Contributor

ffissore commented Jan 16, 2013

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)
Where does it store them on your pc?
I think preferences should be stored under "portable" as well and the selection of the folder (in preferences dialog) should be disabled

Contributor

sgk commented Jan 16, 2013

Hmmm. I confirm that my preferences.txt files is in PC. I may have trashed my correct version. I will check and fix this.

Contributor

sgk commented Jan 16, 2013

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.

Contributor

sgk commented Jan 16, 2013

I think the commit above fixes this bug. I have not yet fully checked because I am on a train to go home now.

Contributor

ffissore commented Jan 16, 2013

thank you: merged into ide-1.5.x

@ffissore ffissore closed this Jan 16, 2013

Contributor

sgk commented Jan 16, 2013

Thank you!

Contributor

WestfW commented May 17, 2015

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.
The choice to use a portable app is the user's (possibly restricted by policy), and the user should still be able to reconfigure anything that IS allowed by policies.

Contributor

aethaniel commented May 18, 2015

Hi, great addition!
Do you think it should be proposed/introduced to http://portableapps.com/apps also (even if Windows only)?

@ffissore ffissore modified the milestone: Release 1.6.5 May 20, 2015

Contributor

ffissore commented May 20, 2015

@WestfW good advice. Please open a separate issue
@aethaniel we don't plan to do that on our own. portableapps is free to do it however

@ffissore ffissore removed this from the Release 1.6.5 milestone May 20, 2015

Testato commented Nov 4, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment