From 9dd541f228ab14cdc84c2961ef1b290e1e5c375f Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sat, 11 Jan 2025 23:17:28 +0100 Subject: [PATCH] Jellyfin Media Player: Enable MPRIS --- home/adalbert.nix | 9 ++++++++- home/features/desktop/common/flatpak.nix | 9 --------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/home/adalbert.nix b/home/adalbert.nix index 368a8dc..8fb0e5e 100644 --- a/home/adalbert.nix +++ b/home/adalbert.nix @@ -1,4 +1,7 @@ -{ inputs, ... }: { +{ inputs +, pkgs +, ... +}: { imports = [ ./global ./features/desktop/awesome @@ -30,6 +33,10 @@ }; }; + home.file = { + ".local/share/jellyfinmediaplayer/scripts/mpris.so".source = "${pkgs.mpvScripts.mpris}/share/mpv/scripts/mpris.so"; + }; + services.flatpak.overrides = { "com.github.iwalton3.jellyfin-media-player".Context = { sockets = [ diff --git a/home/features/desktop/common/flatpak.nix b/home/features/desktop/common/flatpak.nix index c5cf9fc..537704e 100644 --- a/home/features/desktop/common/flatpak.nix +++ b/home/features/desktop/common/flatpak.nix @@ -18,15 +18,6 @@ ]; }; }; - # "com.github.iwalton3.jellyfin-media-player".Context = { - # sockets = [ - # "!wayland" - # "x11" - # ]; - # devices = [ - # "dri" # GPU acceleration - # ]; - # }; }; }; }