postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 841 forks source link

Snap installation - gnome has issues displaying the icon defined in desktop app entry #13252

Open scr4bble opened 1 week ago

scr4bble commented 1 week ago

Is there an existing issue for this?

Describe the Issue

I have Fedora OS running with gnome-shell and postman app installed using snap store. The installation comes with a desktop icon for the postman which has correct icon. When I launch the application though, the running instance icon is showing a cog wheel - gnome-shell probably has issues assiciating this running app instance with the postman app.

Steps To Reproduce

  1. install postman from snap store
  2. launch it
  3. see the icon of the application opened

Screenshots or Videos

Screenshot from 2024-11-12 11-12-51 Screenshot from 2024-11-12 11-12-04

Operating System

Linux

Postman Version

postman - 11.19.0 - rev. 289

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

Adding StartupWMClass=Postman into the desktop entry located at /var/lib/snapd/desktop/applications/postman_postman.desktop fixes this issue. Might be related to this issue as well: https://github.com/postmanlabs/postman-app-support/issues/6920

The temporary solution of adding the StartupWMClass into the desktop entry is not good enough because it is overwritten by any update of postman ( I believe). I have fixed it locally and it returned back in few days so I guess the desktop icon file is being replaced.