Main menu entries created with Alacarte - No icons in dock
I created several main menu entries with Alacarte. I added an icon and I can perfectly see the icon in my application overview. When I open the application, I cannot see the application icon in the dock and also the context menu after a click does not show "New Windows" and "Add to Favorites".
This is an example for a entry created by Alacarte:
[Desktop Entry]
Name=Radix Wallet
Exec=/home/martin/.Software/Radix-Wallet-1.2.5.AppImage
Comment=
Terminal=false
Icon=/home/martin/.Software/Radix-DLT-logo.jpg
Type=Application
Here are some screenshots:
Solution 1:
Try specifying the correct wmclass
in the .desktop
launcher.
Launch the application. Then determine the window class by running xprop | grep WM_CLASS
. This returns something like
WM_CLASS(STRING) = "", ""
Add a line to your `.desktop launcher that specifies its class name as:
StartupWMClass=<Class Name>
where <Class Name>
should be replaced by the actual output of xprop
.