[solved] init.rb file not working on Windows or Raspberry Pi (Sonic Pi 4.4.0)

I’ve been trying to get Sonic Pi to play a simple sample :loop_amen_full or play 60 upon opening. I’ve tried putting the code in the init.rb file on both Windows and Raspberry Pi and neither seems to work at all.

On Windows, the location is:

C:/Program Files/Sonic P/iapp/config/user-examples/init.rb

On Raspberry Pi:

/opt/sonic-pi/app/config/user-examples/init.rb

Any idea what might be wrong?

Answer: I was editing the wrong file! The real locations are:

Windows:

C:/Users/<username>/.sonic-pi/config/init.rb

Raspberry Pi:

/home/<username>/.sonic-pi/config/init.rb