# Preferences are reset every time when I open Processing

**URL:** <https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883>\
**Category:** Processing\
**Created:** [May 14, 2022, 9:18am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883 "2022-05-14T09:18:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sugree](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@sugree](https://discourse.processing.org/u/sugree)\
**Post date:** [May 14, 2022, 9:18am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883/1 "2022-05-14T09:18:50Z")

</div>

I’m in Windows 10. Every time I open Processing, all the Settings in the preferences are reset. Has anyone ever seen this before? How should I deal with it?

---

<div class="post-metadata">

**Author:** ![Ov3rM1nD](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ov3rm1nd/32/1756_2.png) [@Ov3rM1nD](https://discourse.processing.org/u/Ov3rM1nD)\
**Post date:** [May 14, 2022, 11:16am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883/2 "2022-05-14T11:16:51Z")

</div>

Which version of Processing are you using?

---

<div class="post-metadata">

**Author:** ![sugree](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@sugree](https://discourse.processing.org/u/sugree)\
**Post date:** [May 15, 2022, 6:25am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883/3 "2022-05-15T06:25:20Z")

</div>

Thank you for your reply. The version I use is Processing-4.0.

---

<div class="post-metadata">

**Author:** ![The\_Traveler](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/the_traveler/32/16252_2.png) [@The\_Traveler](https://discourse.processing.org/u/The_Traveler)\
**Post date:** [May 15, 2022, 7:31pm UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883/4 "2022-05-15T19:31:05Z")

</div>

I had a similar problem using 4.0b8 under Lubuntu Linux. The preferences.txt file would not always be written to when I changed an option and clicked on “Ok”. The first thing that solved it was to open an example in a new window, change the preferences there and save the change. That seemed to fix the problem for the most part. Otherwise, I closed Processing and hand edited the preference.txt file. That always worked.

---

<div class="post-metadata">

**Author:** ![sugree](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@sugree](https://discourse.processing.org/u/sugree)\
**Post date:** [May 16, 2022, 7:11am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883/5 "2022-05-16T07:11:44Z")

</div>

Thank you for your answer. I tried to modify the preferences in the sample program and save it, but failed. Fortunately, I succeeded after modifying the preferences in the TXT file you said, thank you!

---

<div class="post-metadata">

**Author:** ![Adonnen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/adonnen/32/17187_2.png) [@Adonnen](https://discourse.processing.org/u/Adonnen)\
**Post date:** [October 17, 2022, 1:09am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883/6 "2022-10-17T01:09:06Z")

</div>

I can prevent this by quitting with ctrl-q or File → Quit. It only happens when I close with the windows top-right corner x button. I see the ‘solution’, but is this really solved if it needs a workaround? Seems like a bug.

---

<div class="post-metadata">

**Author:** ![meebox](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/meebox/32/17405_2.png) [@meebox](https://discourse.processing.org/u/meebox)\
**Post date:** [November 18, 2022, 7:04am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883/7 "2022-11-18T07:04:03Z")

</div>

You save my life.This does work.
