I downloaded arduino-1.8.10-linuxarm.tar.xz to my Pi's downloads folder. And then followed instructions from the MagPi site as follows.
Extract the file to your /opt directory , then open a Terminal and run the install.sh script to install.
tar -xf arduino-1.8.10-linuxarm.tar.xz
sudo mv arduino-1.8.10 /opt
You will find Arduino IDE under Menu > Programming. Open the app to start programming your Arduino board.
When running the install.sh I got the following error messages, should I be concerned?
Adding desktop shortcut, menu item and file associations for Arduino IDE...
touch: cannot touch '/root/.config/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 848: /usr/bin/xdg-mime: cannot create /root/.config/mimeapps.list.new: Directory nonexistent
Also, once I launch it, how do I close it? I can't see any close or x etc anywhere?