elementary / dock

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

Flatpak Firefox has an integration issue with the dock #158

Closed arch3rtemp closed 9 months ago

arch3rtemp commented 2 years ago

What Happened?

Recently I noticed that after opening Firefox from the dock or applications menu, it has an issue with the integration. For more clarity see the video: https://drive.google.com/file/d/17QVMxNKLucH09w8EzzYi-vet_X3DDtCk/view?usp=sharing

Steps to Reproduce

I removed flatkap Firefox and reinstalled it but to no avail, whereas Non-Flatpak Firefox works as intended.

Expected Behavior

Every application should be integrated with Elementary OS dock

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

stradicat commented 2 years ago

This also happens with Chrome, now available from flatpak (yay!).

The icon for the opened application is placed at the end of the dock, and not at the app icon's location:

Chrome Captura de pantalla de 2022-05-22 18-06-00

Firefox Captura de pantalla de 2022-05-22 18-06-21

o-alquimista commented 2 years ago

I can reproduce it on 6.1 (Jólnir), but the problem goes away after a reboot.

stradicat commented 2 years ago

It's been several reboots from my side, and this behaviour is not only restricted to browsers, but for other flatpak apps in general (being Firefox the tip of the iceberg here).

o-alquimista commented 2 years ago

Here's what it looks like:

Captura de tela de 2022-07-09 17-37-57

Steps I took:

  1. Clean install of elementary 6.1
  2. Install all available package updates and reboot
  3. Search "firefox" on the app center, click the "Flathub" link, which will open the default browser
  4. Install Firefox from Flathub using the sideload app
  5. Pin the Firefox launcher to the dock and run it, and you'll see the bug: 2 Firefox icons on the dock
  6. Reboot, then run Firefox again: only 1 icon, bug never happens again
cyrneko commented 1 year ago

I have seen this happen from time to time with various Flatpak applications, including but not limited to:

Killing/Restarting the Dock/Plank has not resolved the issue. Restarting the system resolves the issue temporarily, but it pops up again from time to time.

This has been happening to me since 6.x, but is also still here on the new 7.0 release.

danirabbit commented 9 months ago

Going to close this as "Fixed" since we're doing a full rewrite of the dock and the new window matching method seems to work great with Firefox :)