I'd like to have an icon for Python's Integrated DeveLopment Environement (IDLE) in my launcher. When I've started IDLE via the dash, I can right-click on the icon and choose the 'Lock to Launcher' option. After clicking it, however, the option is still there, whereas it should have been replaced by the 'remove from Launcher' option. So, apparently, this does not work this way. Can I somehow create a custom file making a launcher icon for IDLE appear? The commands that happen when I start IDLE are
stefan@stefan-HP-Pavilion-13-x360-PC:~$ ps ax -f | grep python
stefan 2087 1922 0 12:30 ? Sl 0:00 /usr/bin/python /usr/bin/glipper
stefan 3318 1751 0 13:14 ? Sl 0:02 /usr/bin/python3 /usr/bin/idle3
stefan 3325 3318 0 13:14 ? Sl 0:03 /usr/bin/python3 -c __import__('idlelib.run').run.main(True) 35780
stefan 3348 3124 0 13:19 pts/0 S+ 0:00 grep --color=auto python
so I'd somehow have to realize the two commands involving idle with a script.
Edit: When I type /usr/bin/idle3
in my terminal, the other command /usr/bin/python3 -c __import__('idlelib.run').run.main(True)
executes automatically, so there is no need to put that into some "starter" script. All the starter does is to execute /usr/bin/idle
.
Dragging the icon from the dash directly to the launcher (as Jacob suggested) keeps it in the launcher. However, after clicking it, another icon appears which is different from the starter icon and which has the defect I'm describing here. Maybe that issue can be solved as well?