Xampp icon not showing in gnome dash

Hi, I am using xampp for web development practice but xampp icon on the gnome dash not showing but it does show in application search.

I have download it from xampp’s site not from AUR.

I have created

xampp.desktop

and

org.freedesktop.xampp.policy

and able to successfully run the application without any error.

xampp.desktop code details:

Name=xampp
Comment=xampp
Exec=pkexec /opt/lampp/manager-linux-x64.run
Icon=/opt/lampp/htdocs/dashboard/images/favicon.png
Terminal=false
MimeType=application/xampp;
Type=Application
Encoding=UTF-8
Categories=Application;Development;Web;
Version=1.0

org.freedesktop.xampp.policy code details:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

  <action id="org.freedesktop.xampp.policy">
    <description>Run Xampp Control Panel</description>
    <message>Authentication is required to run Xampp Control Panel</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
    <annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
  </action>

</policyconfig>

See the images: please add https before the link to see the images
Link1://ibb.co/M6ymCkL

Link2://ibb.co/3FPV8JC

I use this command to run it from application search

sudo cp org.freedesktop.xampp.policy /usr/share/polkit-1/actions

sudo cp xampp.desktop /usr/share/applications

Is there any way to show the icon on the dash or dock panel?

Thanks
Shahi

All seems oke to me. You have set the icon in the desktop entry and that normally should do the trick.

Are we talking X or Wayland?
Just out of curiosity does it also occur when you install xampp form AUR?

Because I wonder if you need to follow the reverse DNS convention see here

I am using it with Xorg not Wayland.
Xampp from AUR has some complain that’s why I didn’t install it.

I didn’t know anything about reverse DNS convention till you mentioned for icons.

And?
Still nothing or is it oke now?

@SLaItEr

Sorry I didn’t notice the reply. I didn’t do anything after that. I don’t know how to show the icon on gnome dash or dock with it’s own icon for xampp.

Xampp is working fine without it’s proper icon.