I have been learning Tkinter, so I took some of my Python programs and made them work in a window.
By chance, I saw this way of launching a Python program on Stack Overflow, so I tried it.
Then I made an icon and put this code in /home/pedro/.local/share/applications/
[Desktop Entry]
Type=Application
Terminal=false
Name=Mark CW and HW
Exec=/home/pedro/myPython/tkinter/answersToExcel2.py
Icon=/home/pedro/icons/icon4.png
StartupWMClass=myTkApp
I have never done anything like this before, but to my surprise, it works fine! I locked the icon to my launcher. Now I can start my Tkinter window anytime from the launcher.
My question is: Where can I get more information about what should, must or can be in this kind of [Desktop Entry]?
Also, if for some reason the python code fails (not happened yet, I test thoroughly in Idle first) will an error message be written somewhere?