Score:0

Gear icon instead of App icon in taskbar

aq flag

I made a .desktop file for a PyQt5 App, it does show the icon on the desktop, but when I open it and starts running, the icon is not showed in the taskbar, instead there is a gear icon. Thanks for your help

.desktop file:

[Desktop Entry]
StartupWMClass=esmeralda_suites.py
Version=1.0
Type=Application
Name=Esmeralda Software
Comment=
Exec='/home/cattivellio/Documents/Esmeralda BETA 9/esmeralda_suites.py'
Icon=/home/cattivellio/Documents/Esmeralda BETA 9/img/minilogo.png
Path=/home/cattivellio/Documents/Esmeralda BETA 9
Terminal=false
StartupNotify=true

desktop screenshot

Score:0
cn flag

You will need to specify the correct wmclass in the `.desktop launcher.

  • Look up the wmclass for your window: for the standard Ubuntu desktop, open the run dialog (lt+F2) while the app is running. Type lg followed by Enter, and look up the wmclass of the app in the list.

  • Then add or edit the key StartupWMClass in the `.desktop launcher such that it mentions the correct wmclass.

    StartupWMClass=<wmclass>
    
Cattivellio avatar
aq flag
I got this: `WM_CLASS(STRING) = "esmeralda_suites.py", "esmeralda_suites.py" `, but when I add it on my .desktop file it like this `StartupWMClass=esmeralda_suites.py` I still missing the icon in the taskbar, I also tried like this `StartupWMClass="esmeralda_suites.py"` and like this `StartupWMClass=<esmeralda_suites.py>`
vanadium avatar
cn flag
So you are running Xorg. Still, the trick should work, especially after you restarted the system. Indeed, the first version is the correct one, although it may also work with the quotes.
Cattivellio avatar
aq flag
I already restarted the system and still the same problem, Im going to add my .desktop file to the question
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.