Launcher and Icon does not work

As per documentation I have placed my icon and .desktop file in snap/gui directory and they are also packed in meta/gui subdirectory of the snap package. But a different desktop file is generated while installing the snap. So the icon is not visible to the user. How to correct that?