pop-os / cosmic-dock

Pop!_OS fork of https://github.com/micheleg/dash-to-dock/tree/ubuntu-dock
GNU General Public License v2.0
73 stars 18 forks source link

Some Apps can't be pinned to the dock #102

Open ijaure299 opened 2 years ago

ijaure299 commented 2 years ago

Distribution (run cat /etc/os-release):

Pop OS 21.10

Related Application and/or Package Version (run apt policy $PACKAGE NAME): Pop DOck

**Issue/Bug Some Apps can't be pinned to the dock

Steps to reproduce (if you know):

Expected behavior: Pin all apps to the dock

Other Notes: it seem to be apps with multiple windows

no pin

jacobgkau commented 2 years ago

I believe the window needs to have an associated application with a .desktop file in order to be pinnable. What apps are you using for these examples in your screenshots?

ijaure299 commented 2 years ago

I believe the window needs to have an associated application with a .desktop file in order to be pinnable. What apps are you using for these examples in your screenshots?

these are flathubs apps: teamviewer and yuzu emulator nothing special

ggobbe commented 2 years ago

I noticed as well that I cannot pin apps that I installed myself and for which I created a desktop file in ~/.local/share/applications/firefox_dev.desktop

[Desktop Entry]
Name=Firefox Developer 
GenericName=Firefox Developer Edition
Exec=/opt/firefox-dev/firefox %u
Terminal=false
Icon=/opt/firefox-dev/browser/chrome/icons/default/default128.png
Type=Application
Categories=Application;Network;X-Developer;
Comment=Firefox Developer Edition Web Browser.
StartupWMClass=Firefox Developer Edition

Both on PopOS 21.10 and 22.04.

Yet it works fine for apps I installed with flatpak (e.g. Signal Desktop, Flatseal, Chromium).

francislavoie commented 2 years ago

FWIW, the problem with @ggobbe's firefox config is that StartupWMClass is incorrect, it needs to be StartupWMClass=firefox-aurora.

You can find the correct class by using opening "looking glass" by hitting Alt+F2, typing lg, ENTER, then in the top-right, click "Windows", then you can see the wmclass for each of your running apps.

Make sure what's in your .desktop file matches that, and it should work to allow you to pin things.

ronilaukkarinen commented 1 year ago

I have this problem as well. Nothing I've tried works.

siddh34 commented 5 months ago

Same here guys

screenshot-2024-05-14-13-51-17

Also chrome logo not visible. The chrome that I have is a flatpak

ivxvm commented 3 weeks ago

Had the same problem with Godot on 22.04, this workaround fixed the issue for me: https://unix.stackexchange.com/a/756029