How to assign an icon to a window icon in the Ubuntu launcher?
by Pedroski from LinuxQuestions.org on (#56BTM)
I made a couple of tkinter windows in Python. They both work and do what I want.
I assigned 2 launchers to them with a file like this in /home/pedro/.local/share/applications
Quote:
and I locked the launchers to side panel in Ubuntu.
When I click one of my launchers, the window opens and I see a grey square with a question mark in it in the launcher panel. I suppose that is the default when no icon is assigned to the window.
Where can I assign a different icon to my window?
Do I need to do that in Python, or where??


I assigned 2 launchers to them with a file like this in /home/pedro/.local/share/applications
Quote:
[Desktop Entry] Type=Application Terminal=false Name=My Tk Application Exec=/home/pedro/myPython/tkinter/master2.py Icon=/home/pedro/icons/icon1.png StartupWMClass=myTkApp |
When I click one of my launchers, the window opens and I see a grey square with a question mark in it in the launcher panel. I suppose that is the default when no icon is assigned to the window.
Where can I assign a different icon to my window?
Do I need to do that in Python, or where??