Remove commandline code that disabled iTunes

Discussion in 'OS X El Capitan (10.11)' started by smileman, Apr 15, 2016.

  1. smileman macrumors member

    Joined:
    Oct 23, 2011
    #1
    While ago iTunes was driving me nuts, opening opening randomly, etc. So I followed someone's suggestion and entered some command line code to disable iTunes. Is there a way to reverse this as I now need to use iTunes?
     
  2. Shirasaki macrumors 603

    Shirasaki

    Joined:
    May 16, 2015
    #2
    If you can find that code, change the parameter should be able to reactivate iTunes.
     
  3. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #3
    There most likely is a way to reverse whatever it is that you did but you need to know exactly what you did in order to reverse it. There are at least several ways to make it that iTunes won't work.
     
  4. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #4
    Did that step involve turning off System Integrity Protection? (For that you would have had to reboot into Recovery and enter a command in Terminal.)
     
  5. smileman thread starter macrumors member

    Joined:
    Oct 23, 2011
    #5
  6. chrfr macrumors 603

    Joined:
    Jul 11, 2009
    #6
    If you haven't used terminal a lot, you may find it by opening Terminal and pressing the up-arrow key. This will show you the last entered commands, and goes back quite a while by default.
    You could also open Terminal and type or paste the following:
    Code:
    cat ~/.bash_history
    This will open up the file that keeps track of your past commands all at once, rather than cycling through step by step with the up-arrow key.
     
  7. KALLT, Apr 15, 2016
    Last edited: Apr 15, 2016

    KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #7
    If you did this, then you either deleted iTunes entirely or moved it to another location. I was wrong to say that you need to disable System Integrity Protection for this.

    If you cannot find it, then you should check the mentioned directory ‘/tmp’ (Finder > Go > Go to Folder and type ‘/tmp’). You can also look for it with this:
    Code:
    sudo find -x / -iname *itunes -type f

    If it is gone, then you have to download it again. It is probably the easiest method anyway.
    https://www.apple.com/itunes/download/
     
  8. smileman thread starter macrumors member

    Joined:
    Oct 23, 2011
    #8
    The app is still there so I looked for the commands and added a # in front of them. That seems to have allowed iTunes to open.

    Thanks.
     

Share This Page