I'm not sure why I can't figure this out by myself. It seems like it should be simple but I'm having trouble getting it to work so I'm asking for help. I want to create an icon on my desktop to reboot my pi. Here is what I did:
sudo nano /home/pi/Desktop/reboot.desktop
I entered "sudo shutdown -r" into the file.
That just opened the file when I double clicked on it. Obviously missing something so I tried:
sudo nano /home/pi/Desktop/reboot.sh and entered the same "sudo shutdown -r" and it did the same thing. Can someone please help me out with the piece of the puzzle I am missing?