Skip to content

turn off overwriting preferences.txt in portable folder #5668

@hanabanana

Description

@hanabanana

Using the portable folder inside IDE folder, it is nice that we are able to to make all IDE files self-contained in one location instead of having files scattered around many places. To share the same IDE across multiple machines(same OS), we need to put the IDE folder on a network drive, which only have read permission for normal users. Now, the IDE can no longer open because it tries to overwrite the preferences.txt in the portable folder and fails with a permission issue. We are forced to go back to the scattered IDE option, which makes it harder to share across multiple machines.

Is there a way to make IDE not overwriting the preferences.txt in portable folder by either turning it off or setting it to write the txt somewhere else?

Activity

cmaglie

cmaglie commented on Aug 10, 2018

@cmaglie
Member

@hanabanana
is the --preference-file an option for you?

  --preferences-file filename
    Read and store preferences from the specified filename instead of the default one.

using this option you can make the IDE write the file in any arbitraty path.

added a commit that references this issue on Aug 10, 2018
7852051
hanabanana

hanabanana commented on Aug 13, 2018

@hanabanana
Author

Thanks for the pull request. I tried the patch and it worked well in our read-only network drive.

added this to the Release 1.8.6 milestone on Aug 13, 2018
added a commit that references this issue on Aug 13, 2018
99fe051
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cmaglie@hanabanana

        Issue actions

          turn off overwriting preferences.txt in portable folder · Issue #5668 · arduino/Arduino