I want to run Arduino IDE as root, because if I run it normally (as a normal user), it won't allow me to upload the code to the Arduino. For now I have circumvented this issue by creating a symlink to the arduino file in my installation directory (for me it is /opt/arduino-1.8.5/arduino) and running it as sudo.
I want to be able to run it from the application menu, so I used a program called AppEditor (from the AppCentre)
If I add "sudo" before the "/opt/arduino-1.8.5/arduino" as listed below, the program will not even run. Am I writing the syntax wrong?