tech-mech
Posts: 116
Joined: Sun Feb 23, 2014 9:51 pm
Location: Portland, Oregon USA
Contact: Yahoo Messenger

Arduino IDE to desktop - Solved

Thu Feb 18, 2016 11:23 pm

To work with wearable electronics that use Arduino code I did the apt-get update, upgrade and install. The directions I followed led me to believe that I would have a new selection with Arduino in the menu on the desk top, didn't happen. I can use run to start the IDE and program Arduino devices but would like a desktop icon.

Any step by step directions?
Last edited by tech-mech on Sat Feb 20, 2016 7:17 pm, edited 1 time in total.

buteman
Posts: 133
Joined: Tue Jul 03, 2012 9:06 am
Location: Barrow upon Humber

Re: Arduino IDE to desktop

Fri Feb 19, 2016 10:26 pm

If you can run the application you know the name. In a terminal issue this command

Code: Select all

locate "whatever the name of the application is" 
Right click on the desktop, select 'create a new launcher here' and fill in the details
The locate command will show you the path to the command so you can navigate to it.
Put whatever name and comment you want in the boxes and click 'OK'
That should be it.
There are few rewards greater than accomplishing a difficult task. Just because something doesn't cost money doesn't mean there is no cost. Every success makes the next one easier. Of course that takes determination and patience.

HankB
Posts: 127
Joined: Fri Jan 01, 2016 2:45 pm

Re: Arduino IDE to desktop

Sat Feb 20, 2016 5:12 am

If 'locate' does not work (not installed by default on my Raspbian install) you can try 'which' as in 'which arduino' and that should show the full path to the executable.

If the program shows up in the menu, you may be able to right click on the menu item and create a shortcut or link on the desktop. (My Pi is not up at the moment so I can't actually try this myself.)

HTH,
hank

tech-mech
Posts: 116
Joined: Sun Feb 23, 2014 9:51 pm
Location: Portland, Oregon USA
Contact: Yahoo Messenger

Re: Arduino IDE to desktop

Sat Feb 20, 2016 6:57 am

Thanks for the replies.

whereis got me the path info.

I used nano to look at other desktop files and sorta copied one. It is now on the desk top but not in the menu.

There was an icon file for Arduino so I used it.

Any ideas on how to get it in the menu?

tech-mech
Posts: 116
Joined: Sun Feb 23, 2014 9:51 pm
Location: Portland, Oregon USA
Contact: Yahoo Messenger

Re: Arduino IDE to desktop

Sat Feb 20, 2016 7:16 pm

I found the problem.

The .desktop file in /usr/share/applications listed Icon=arduino when it needed to be Icon=/usr/share/pixmaps/arduino.xpm

After making that change it showed up in the menu.

User avatar
liudr
Posts: 685
Joined: Sat Jun 01, 2013 12:11 am
Location: Central MN, USA
Contact: Website

Re: Arduino IDE to desktop - Solved

Sun Feb 21, 2016 5:43 am

IIRC, arduino IDE is stuck at 1.0.5 for raspberry pi so you are missing out a lot (current version 1.6.x).
What is the reason that makes you want to use Arduino IDE on raspberry pi?
Arduino data loggers, user interface, printed circuit board designer since 2009, RPI 3B 2B 2B Zero Jessie, assembly/C/C++/java/python programmer since the 80's

Return to “General discussion”