-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jellyfin-media-player: fix StartupWMClass/icon #373539
base: master
Are you sure you want to change the base?
Conversation
Hi, thanks for your PR! I had a quick look into this issue, I'll outline my findings here. Please let me know if I misunderstood/misinterpreted something. Findings:
Further notes:
First of all I have to say was surprised to see that the projects I looked into QT/GTK adapted this change without any change in the specification. What would make sense however would be to look into why setDesktopFileName does not have the desired effect on X11 systems. @bjornfor can you confirm that my findings are correct? Did you test this change on a wayland system? |
Not enough time/skill on my part.
Yes. I run NixOS with GNOME (navigating to "Settings -> About -> System Details" shows "Wayland") and verified this PR there. I'm pretty sure the Jellyfin icon worked fine before, and it wasn't until the upstream change that it broke for me (and a few others). |
Thanks for digging into the issue! |
You are welcome! To Document this issue: Question regarding this PR: General Note: |
On NixOS 24.11 at commit e24b4c0, with GNOME (Wayland) desktop:
Oops! I think not. Will fix.
|
Maybe you're right about substituteInPlace vs patch, because now that I think of it, I don't know what other, if any, system uses the desktop files. So would the substituteInPlace condition be But, let's find out what the StartupWMClass= value should be first, then I can update the implementation. |
Oh, and a side note about the isDarwin condition; I think the correct check is hostPlatform.isDarwin, not stdenv.isDarwin. |
Made a discovery; jellyfin-media-player runs under xwayland on my NixOS GNOME system!
So that should explain some things... but why isn't it using native wayland? |
Now I noticed this startup message:
And surely, running like this fixes the icon: But why is it ignoring wayland to begin with? |
But forcing wayland, it the app id gets set:
(When run like this the icon is correct in the dash/dock.) |
Things done
Fix the icon in the dash/dock.
Upstream PR: jellyfin/jellyfin-media-player#771
Tested in NixSO 24.11.
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.