** Since writing this blog post, the developers have produced a deb package so that means you can use the normal apt-get install commands for Sonic-PI **
It seems by default that Sonic pi v2 doesn’t add itself to the menu or to the desktop. I think I may have found a solution to this.
You need several pieces of information here:
Where the information is stored that points icons / links to the binary executable files needed to run the program.
it seems that http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=71592 on the raspberry pi forums provides an answer to this.
The second piece of information needed is where sonic Pi is located on your system, as in where you extracted the binary file
In my case it is Programs/sonic-pi/
with the executable being sonic-pi
Armed with this we can navigate to where the files are stored that point links to the binary executable files
In here there is a file : sonic-pi.desktop
if we edit this we see the following (or very similar)
Comment=Learn programming and computer science while creating music
So we only need the line
This loads up version one, what we need to do is point this at sonic pi 2
so edit that line to read
should in theory point the icon to the new version.
The reason being is that sonic-pi version 1 is in the system path so the shell can find it, sonic pi isn’t as the installer clearly didn’t do this.
I am writing this at the same time as working out how to fix things, so I had to edit the file as root so on the pi and as nano is the default editor you need to use sudo nano <file>
That in theory should be it. Will try and come back later to find out if it worked or not.
It seems that this solution DOES NOT WORK. So will try and find a different solution. However some of the items I have found out by investigating this could prove useful.
Just worked out the issue I didn’t put the full path in properly
should be : /home/pi/Programs/sonic-pi/bin/sonic-pi
I found it easier to edit in leaf pad, so from xterm use sudo leafpad, navigate to the file sonic-pi.desktop
It also helps to use the file manager to navigate to the target directory, that way you can copy / paste the path and it ends up in as it should be.
I have left the instructions above conclusion intact to highlight the issues and errors I made, as a learning points.
if all works out well you, can now run sonic-pi from the menu.