webpin icon indicating copy to clipboard operation
webpin copied to clipboard

Window class don't match on DockbarX

Open rauldipeas opened this issue 4 years ago • 1 comments

When i launch a webpin app that ain't pin on panel, it doesn't show app icon on DockbarX.

ksnip_20200604-161436

rauldipeas avatar Jun 04 '20 19:06 rauldipeas

Did you perchance try setting or altering the StartupWMClass key within the ~/.local/share/applications/Whatever-webpin.desktop file?

I don't use DockbarX or Twilio, but this is typically what's required for me to get a dock icon in my desktop environment of choice, when one doesn't initially show up. On my system, however, WebPin—built from the latest GitHub source—is already setting that key appropriately in all the .desktop files that it creates, and I'm not missing icons for any of the WebPin apps.

If you'd like to experiment with this anyway, the command xprop can be of assistance when trying to determine what the window class is. I believe the window name is also allowed for that key, per the freedesktop.org specification, where StartupWMClass is described as the WM class or WM name hint.

Example for an Instapaper WebPin application, with the start page set as https://instapaper.com:

$ xprop | grep -E '^WM_(CLASS|NAME)'
WM_CLASS(STRING) = "https://instapaper.com", "https://instapaper.com"
WM_NAME(STRING) = "Instapaper"

Hope that helps.

ernstki avatar Jan 24 '23 21:01 ernstki