From 91749c68229f812ecb954c28217b195c52d8e4c4 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 6 May 2024 10:24:22 +0200 Subject: [PATCH] Temporary fix to jellyfinmediaplayer on Wayland --- modules/hm/jellyfin-player.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/hm/jellyfin-player.nix b/modules/hm/jellyfin-player.nix index 9c8b9bc..875c220 100644 --- a/modules/hm/jellyfin-player.nix +++ b/modules/hm/jellyfin-player.nix @@ -1 +1,11 @@ -{ pkgs, ... }: { home.packages = [ pkgs.jellyfin-media-player ]; } +{ pkgs, ... }: { + home.packages = [ + (pkgs.jellyfin-media-player.overrideAttrs (old: { + postInstall = '' + ${old.postInstall} + wrapProgram $out/bin/jellyfinmediaplayer \ + --unset WAYLAND_DISPLAY + ''; + })) + ]; +}