linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
449 stars 73 forks source link

No icon when docking Flatpak application / Flatpak program shows twice on dock #7169

Open eduardomozart opened 7 months ago

eduardomozart commented 7 months ago

SUMMARY | 问题概要

After installing Remote Desktop Manager through Flatpak and running it through Menu, the program is run but the program icon isn't shown on Dock when running or docking the program. A second program is shown on dock too, so if you dock the Remote Desktop Manager through menu, there would be two instances of the icon on the Dock when running the program.

SOFTWARE/OS VERSIONS | 软件/系统版本信息

Distribution: Deepin v20.9.
Package: flatpak (1.10.7)
Flatpak package (system-level): net.devolutions.RDM (2023.3.1.7/flathub)

PRE-REQUIREMENT | 预置条件

No response

STEPS TO REPRODUCE | 复现步骤

Install Remote Desktop Manager through Flathub. Open Remote Desktop Manager on menu. It creates a second item on Dock and the program icon isn't shown on Dock.

OBSERVED RESULT | 观察到的结果

When docking the program or running it through menu, it works as expected, but no icon is shown on Dock.

EXPECTED RESULT | 期望的结果

In this case, I believe that when executing binaries, there's no way to append icons for it, so Flatpak should use the same icon of the main Desktop file used to run the program.

ADDITIONAL INFORMATION | 额外补充

I have to edit the file ~/.config/dock/scratch manually and replace the Icon parameter of the docked Desktop file to net.devolutions.RDM. I also needed to edit the corresponding SH file on same folder to run dex /var/lib/flatpak/exports/share/applications/net.devolutions.RDM.desktop, so now when running the program through menu or dock, no second icon is shown on dock.

Issue also reported in https://github.com/flatpak/flatpak/issues/5672 because I'm not sure if it's a Flatpak, RDM or distro-specific issue.

BLumia commented 7 months ago

Since v20 is in maintain-only mode now, please confirm if this still exists in v23. Thanks!

cc @babyfengfjx

eduardomozart commented 7 months ago

I would like not use v23 because it isn't based on Debian anymore and I really like APT, I have no idea how to use the new packaging method and I would like not have to compile every app that I need =(

BLumia commented 7 months ago

I would like not use v23 because it isn't based on Debian anymore and I really like APT

v23 is still dpkg-based so you can still use the apt command as usual, but if you prefer not using v23 for some other reason, you can still consider try out UbuntuDDE, and we are also working on porting DDE to Debian as well :)

eduardomozart commented 7 months ago

Its based on Debian Stable still?

BLumia commented 7 months ago

If you mean deepin v23: It's no longer based on debian's package repo (we maintain the packages under the https://github.com/deepin-community GitHub organization instead of using debian's package repo), but the package manager app is still apt/dpkg-based.

babyfengfjx commented 7 months ago

@SuperEffie We can confirm the problem described above on the V23 release.