How to install Scratch 2 on Ubuntu 16.10. or 17.04 (64bit)?
Have followed the code by Martin but permission is denied and no such file exists messages appear.
The first bit of code seems to have worked so I have the scratch.air file
Any help appreciated - code I've tried is below :
Create launcher:
$ cat << _EOF_ > /usr/share/applications/Scratch2.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/opt/adobe-air-sdk/adobe-air/adobe-air /opt/adobe-air-sdk/scratch/Scratch-456.0.1.air
Icon=/opt/adobe-air-sdk/scratch/scratch.png
Terminal=false
Name=Scratch 2
Comment=Programming system and content development tool
Categories=Application;Education;Development;ComputerScience;
MimeType=application/x-scratch-project
_EOF_
$ chmod +x /usr/share/applications/Scratch2.desktop
sudoedit /usr/share/applications/Scratch2.desktop
and then type everything from[Desktop Entry]
toMimeType=application/x-scratch-project
into the editor or simply replace the>
in the first line of your existing command by| sudo tee
. Alternatively, drop to a root shell at the start usingsudo -i
and then type everything as-is. I would omit thechmod
command altogether, for the reason I mentioned above. – steeldriver Sep 16 '17 at 13:44