Article 56BTM How to assign an icon to a window icon in the Ubuntu launcher?

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:
[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
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??latest?d=yIl2AUoC8zA latest?i=dSGRextfpVw:xDE40Jh_k7A:F7zBnMy latest?i=dSGRextfpVw:xDE40Jh_k7A:V_sGLiP latest?d=qj6IDK7rITs latest?i=dSGRextfpVw:xDE40Jh_k7A:gIN9vFwdSGRextfpVw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments