# \[Fixed in 2.760\] GoldenChaos 2.754 and iTunes cannot close

**URL:** <https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893>\
**Category:** Setup/Preset Sharing\
**Tags:** bug, fixed\
**Created:** [April 15, 2019, 11:50am UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893 "2019-04-15T11:50:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjstew33](https://community.folivora.ai/letter_avatar_proxy/v4/letter/m/e95f7d/32.png) [@mjstew33](https://community.folivora.ai/u/mjstew33)\
**Post date:** [April 15, 2019, 11:50am UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/1 "2019-04-15T11:50:21Z")

</div>

Hi all. Updated to the newest version of GoldenChaos-BTT, and now iTunes is always running. I close it, and it automatically reopens. I close BTT, and then I am able to close iTunes. I personally use Spotify, and not iTunes. I'd rather not have it running. I was running the previous latest beta before 2.754 and did not have this issue. Does anyone have any thoughts? I can't find the download link for the previous beta before 2.754 and I'd rather use that one until this bug is fixed. Any thoughts, @GoldenChaos?

---

<div class="post-metadata">

**Author:** ![GoldenChaos](https://community.folivora.ai/user_avatar/community.folivora.ai/goldenchaos/32/23617_2.png) [@GoldenChaos](https://community.folivora.ai/u/GoldenChaos)\
**Post date:** [April 15, 2019, 1:49pm UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/2 "2019-04-15T13:49:45Z")

</div>

I think I've found the source of this bug - the new "add to iTunes" script. I'll have a new experimental version out with a fix shortly!

Also, download links for previous versions are at the bottom of the first post of the release thread 🙂

EDIT: Fixed the script but that didn't fix the issue. Now I'm confused. Time to do more digging. Maybe my fix didn't fix it somehow...

---

<div class="post-metadata">

**Author:** ![mjstew33](https://community.folivora.ai/letter_avatar_proxy/v4/letter/m/e95f7d/32.png) [@mjstew33](https://community.folivora.ai/u/mjstew33)\
**Post date:** [April 15, 2019, 6:26pm UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/3 "2019-04-15T18:26:18Z")

</div>

thanks so much for looking into this!

---

<div class="post-metadata">

**Author:** ![yuuiko](https://community.folivora.ai/user_avatar/community.folivora.ai/yuuiko/32/31891_2.png) [@yuuiko](https://community.folivora.ai/u/yuuiko)\
**Post date:** [April 15, 2019, 10:36pm UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/4 "2019-04-15T22:36:49Z")

</div>

Having these issues too,

For spotify, VLC and iTunes

Everything checks if they are open before they start too... Confused as well

---

<div class="post-metadata">

**Author:** ![ern](https://community.folivora.ai/user_avatar/community.folivora.ai/ern/32/2289_2.png) [@ern](https://community.folivora.ai/u/ern)\
**Post date:** [April 19, 2019, 4:43pm UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/5 "2019-04-19T16:43:19Z")

</div>

Same situation. Looking forward to a fix.

---

<div class="post-metadata">

**Author:** ![GoldenChaos](https://community.folivora.ai/user_avatar/community.folivora.ai/goldenchaos/32/23617_2.png) [@GoldenChaos](https://community.folivora.ai/u/GoldenChaos)\
**Post date:** [April 19, 2019, 4:44pm UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/6 "2019-04-19T16:44:25Z")

</div>

I just finished my refactor of the media controls, and I still haven't found the source of the issue. I'm pretty much going to start turning widgets off until the issue goes away and go from there.

Sorry this fix has taken so long!

EDIT: Found it. The Add to Library/Download Song button accidentally had "Always run when widget becomes visible" checked, which is what was launching iTunes. New experimental version going out in just a few with the fix implemented.

EDIT2: Uh, never mind. It worked for a second, but now iTunes is still launching. But it's definitely the download/add to library script. Grr.

---

<div class="post-metadata">

**Author:** ![GoldenChaos](https://community.folivora.ai/user_avatar/community.folivora.ai/goldenchaos/32/23617_2.png) [@GoldenChaos](https://community.folivora.ai/u/GoldenChaos)\
**Post date:** [April 19, 2019, 8:03pm UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/7 "2019-04-19T20:03:51Z")

</div>

FIXED!!

Uploading new version now.

---

<div class="post-metadata">

**Author:** ![yuuiko](https://community.folivora.ai/user_avatar/community.folivora.ai/yuuiko/32/31891_2.png) [@yuuiko](https://community.folivora.ai/u/yuuiko)\
**Post date:** [April 20, 2019, 4:52am UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/8 "2019-04-20T04:52:59Z")

</div>

How did you fix this?

---

<div class="post-metadata">

**Author:** ![GoldenChaos](https://community.folivora.ai/user_avatar/community.folivora.ai/goldenchaos/32/23617_2.png) [@GoldenChaos](https://community.folivora.ai/u/GoldenChaos)\
**Post date:** [April 20, 2019, 12:58pm UTC](https://community.folivora.ai/t/fixed-in-2-760-goldenchaos-2-754-and-itunes-cannot-close/7893/9 "2019-04-20T12:58:34Z")

</div>

Wrapped the inner portion of the script in a try statement 🙂 full code here: [Add to library (and download) button for iTunes](https://community.folivora.ai/t/add-to-library-and-download-button-for-itunes/7628/14)
