elementary / dock

A quick app launcher and window switcher for Pantheon and elementary OS
https://elementary.io
GNU General Public License v3.0
88 stars 23 forks source link

Dock doesn't play nice with flatpak apps #118

Closed ChildishGiant closed 3 years ago

ChildishGiant commented 3 years ago

What Happened

Flatpak apps (including ones installed from the AppCenter) display two icons when opened, one high res that doesn't have an executable associated with it and one low res, with the actual app attached. The high res one can be removed by pinning an unpinning but will come back with each time the app gets booted. The other cannot be pinned.

https://user-images.githubusercontent.com/13716824/128924535-a8a05d54-832c-4efb-80c7-7256ed939253.mp4

Expected Behavior

Apps should have one icon and be pinnable.

Steps to Reproduce

  1. Install any appcenter app on Odin
  2. Open from slingshot

Platform Information

Odin stable

wojexe commented 3 years ago

This doesn't happen for me for some reason. (And yeah, the app was installed from the AppCenter)

https://user-images.githubusercontent.com/21208490/128928213-b95ae08d-7bac-4573-bb42-5c00ac7e1365.mp4

System details:

mtsochacki commented 3 years ago

This happened to me after installing flatpak Firefox (from flathub website) on clean eOS 6.0.

Screenshot from 2021-08-11 11-41-14

Screenshot from 2021-08-11 11-42-49

System details:

mtsochacki commented 3 years ago

It seems like rebooting "fixed it" for me. Now I have only one, high-res icon that is both connected to executable and that I am able to pin/unpin from dock.

stan-janssen commented 3 years ago

It's unfortunate that a reboot is required for this, even when the applications have the correct StartupWMClass setting in their .desktop entries. I've verified that restarting plank (using killall plank) is not enough. If someone knows where this behavior is cached, maybe we can come up with a solution that does not involve rebooting the machine?

hanaral commented 3 years ago

A lot of these issues are probably to do with Plank's ancient codebase, and while they probably can be fixed without a complete rewrite I would urge new users to check for already existing issues for this topic

Blast-City commented 3 years ago

Hi.

Since this is clearly a duplicate, can you close it in favor of #64. Yours seems to be more concise and it even uses the issues template, but #64 is older.

Thanks.

ChildishGiant commented 3 years ago

Since this is clearly a duplicate, can you close it in favor of #118. Yours seems to be more concise and it even uses the issues template, but #118 is older.

This is #118?

cassidyjames commented 3 years ago

I think @Blast-City meant #64. ;) Closing as a duplicate of #64.

Blast-City commented 3 years ago

Since this is clearly a duplicate, can you close it in favor of #118. Yours seems to be more concise and it even uses the issues template, but #118 is older.

This is #118?

Sorry, I meant #64.