User manual
31
Fig. 2.9: A message of a desktop shortcut when duplicating.
Right-click now the copy of the desktop icon with your mouse and select
leafpad
from the shortcut menu. In
Linux desktop shortcuts are mere text files, which can be edited using a text editor.
Fig. 2.10: The desktop shortcut in Leafpad editor.
Make the two modifications as illustrated here:
• Change the field
Name to IDLE GPIO. This is the name shown on the screen.
• In the field
Exec enter just before the actual command call the word sudo.
Close the editor and save the file. Double click on the new desktop icon and start the Python-IDE
IDLE
with
superuser privileges. You can use now the GPIO functions without the need to calling up Python over the
LXTerminal.