Closed DanyGee closed 3 years ago
gimp (flatpak) vs inkscape (also flatpak)
The "solution" for this is to add the following line to /home/USER/.local/share/flatpak/exports/share/applications/io.mpv.desktop
:
StartupWMClass=mpv
And then reboot the computer. After that, the icon will no longer be duplicated and the icon will be crisp.
I looked in the flathub/io.mpv.Mpv repository, but could not find how and where the .desktop
entry is created.
For example, in the flathub/org.mozilla.Thunderbird repository, there is a .desktop file in there that contains the correct StartupWMClass
entry, which was contributed earlier to solve this exact issue.
The same goes, by the way, for the GIMP and InkScape application desktop entries. which need StartupWMClass
= gimp-2.10
and Inkscape
, respectively.
I'm new to Flatpak packaging, but if anyone can point me in the right direction on this, I'd be happy to contribute the fixes in the correct places.
I created a pull request for the MPV maintainers, in case they'd like to include it: https://github.com/mpv-player/mpv/pull/9111.
I created a pull request for the MPV maintainers, in case they'd like to include it: mpv-player/mpv#9111.
Shouldn't this be considered a bad flatpak package?
Shouldn't this be considered a bad flatpak package?
Do you know where to update the .desktop
entry in the Flatpak process? If so, we should maybe make this fix there. For now, this is the place I know that fixes this problem, and I don't believe it hurts anyone else, or am I missing something?
Do you know where to update the
.desktop
entry in the Flatpak process?
No, completely unfalimiar with flatpak.
I don't believe it hurts anyone else, or am I missing something?
Not sure, but I think you're right. Though I'll let someone who knows more about freedesktop than myself to comment at the mpv issue.
My pull request was merged. I'm not sure what happens next; do we need to create a new flatpak release?
Maybe this script may be of help in this regard to any of you https://github.com/bilelmoussaoui/StartupWMClassFixer
Hasn't been updated in a while though.
I can't reproduce this with mpv from Flathub, and it sounds like the issue may have been upstream in the first place.
What Happened
MPV video player installed as flatpak launches as two icons, one hi-res and one low-res. Low-res one is the active one.
After couple of seconds, the hi-res one disappears and the low-res one stays.
Expected Behavior
MPV should launch as one hi-res icon. (this actually works for MPV installed with apt)
Steps to Reproduce
Platform Information
Additional Info
MPV dev claims it's not MPV's fault https://github.com/mpv-player/mpv/issues/9109