Duplicated launcher in taskbar

Hello,
I installed Z18-core gnome (from scratch on one side [work PC], upgrade on the other [personal PC]), and the behavior is the same on each laptop.

When I have a .tar.gz file, I create a launcher shortcut for it, and put it in both /usr/share/applications and/or ~/.local/share/applications.

The icon appears in the search results, and I can pin it, but when I launch it, I get a separate container that is not linked to the icon I clicked on.

In other words, I click for example on Datagrip (DG) and it opens the app with another container associated with an executable with a random icon.

my launcher is writed like this :

Blockquote
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Pycharm
Exec=/bin/sh -c "/home/reka/apps/pycharm/bin/pycharm.sh"
#fonctionne aussi : Exec=/home/reka/apps/pycharm/bin/pycharm.sh
Icon=/home/reka/apps/pycharm/pycharm/bin/pycharm.svg
Categories=Development;Applications

and the result like this : https://i.ibb.co/1GWXQ1Yw/qs0-SOZGQAr.png
Do you have any idea about this tiny problem ?

I'm not sure if that can help you?

Another way you could try is to switch to Xorg if you are on Wayland (at loginscreen click on your username then a cog wheal appears at the bottom right corner, there you can switch between Xorg and Wayland).

1 Like

Welcome to the Forum!

Maybe try it with keeping it in the usr Directory and delete it from the home Directory.

2 Likes

Start from Xorg instead wayland and StartWMClass : same result as before

Put desktop launcher only on .local only : fail
Put desktop launcher only on usr only : fail
Put desktop launcher on both : fail

Maybe it is only the jetbrains apps which have the problem?

Let see. Wait yes. It is only pycharm and the jetbrains suit
When i make gtk-default pycharm, i get a lot of errors. I will analyze this and compare between my 17.3 zorin (old computer has no problem) and my 18 ones.
Thanks for the tips !

It was that !
StartWMClass with a good name like jetbrains-pycharm (no space blank, i made a mistake :downcast_face_with_sweat:)

With that, it works perfectly !!

Thanks for your help everyone !

2 Likes