• 2 posts
  • 1 comment
Joined 7 months ago
Cake day: April 27th, 2026
  • that ain’t old, old is like core 2 duos with like 4 gb ram. for your use case - Plasma, don’t dick around with X11 stuff (mate, xfce, etc) on a laptop. you’ll keep all modern aspects of the wayland desktop, libinput, hidpi, etc but you can tweak everything to your liking and turn off all extraneous stuff you perceive to be dragging.

    not your use case, but I used to game in Gnome and was used to its crashes under load, everything just closes and here’s your login screen. zero of those ever since I switched. and I get to have separate profiles for power and battery. and touch scroll speed. and finetune animations. and better hidpi. and no more half the screen lost to gigantic windows title bars. and basta with the stupid notifications. etc. etc.

I’m using Jellyfin Desktop in TV mode. it simplifies the UI and reacts to cursors, enter, and esc for navigation. I got a bluetooth controller for android boxes I paired with my desktop and it emits those keys via InputRemapper. There’s also a separate key used to start JD in TV fullscreen mode, with --scale-factor 2, got a 4K screen and the UI is tiny otherwise.

I always thought JD should be able to play youtube videos, but so far, no change on that front. So up until recently, I also ran macast as a DLNA sink so I can send it youtube videos and it would play them in fullscreen via mpv. Grabs focus, mpv’s input.conf makes it react to the same keys I use for JD, exits when it’s done.

But because I couldn’t figure out how to pause JD if it’s playing and resume after, because of the insane amount of log spam from macast, and because I needed a separate sending app on my android device (allcast) I tried to simplify the setup and came up with the following.

On my desktop I got this bash script:

#!/usr/bin/env bash

JELLYFIN_WAS_PLAYING=

case "$1" in

  *youtube*|*youtu.be* )
    case "$1" in
      *channel* ) : ;;            
      *)
        while IFS= read -r player; do
          [[ $player == JellyfinDesktop* ]] || continue

          if [[ $(playerctl -p "$player" status 2>/dev/null) == Playing ]]; then
            playerctl -p "$player" pause
            JELLYFIN_WAS_PLAYING=1
            export JELLYFIN_WAS_PLAYING
            break
          fi
        done < <(playerctl -l)

        mpv --fs --no-terminal "$1"
        mpv_status=$?

        if [[ $JELLYFIN_WAS_PLAYING == 1 ]]; then
          playerctl -p "$player" play
          unset JELLYFIN_WAS_PLAYING
        fi

        exit "$mpv_status"
        ;;
    esac
    ;;


  * )
    firefox --new-tab "$1" >/dev/null 2>&1 &

    ;;

esac

and I set it as default browser in Plasma.

So what I do now is just send the link via KDEConnect. Plasma sends it to my script, it checks if the URL is from youtube and plays the thing. If JD was playing at the time, it pauses it and resumes after mpv exits. If it’s a normal URL, open it in firefox.

I’d prefer to use freetube to play the video, as I would like to save the URL to history, but I don’t know how to make it play in fullscreen. So I figure, next best thing is to work out out how to add the URL to freetube’s history.

Got any comments, suggestions, ways to improve it? Edge cases I haven’t considered?

edit: typo in code

anyone else? rolling back to previous flatpak solves it.

$ flatpak remote-info --log flathub org.jellyfin.JellyfinDesktop

Jellyfin Desktop - Jellyfin desktop client

        ID: org.jellyfin.JellyfinDesktop
       Ref: app/org.jellyfin.JellyfinDesktop/x86_64/stable
      Arch: x86_64
    Branch: stable
   Version: 2.0.0
   License: GPL-2.0
Collection: org.flathub.Stable

Download Size: 139.7 MB Installed Size: 323.2 MB Runtime: org.kde.Platform/x86_64/6.11 Sdk: org.kde.Sdk/x86_64/6.11

    Commit: a6d784a0c6db00f3d260e08c026a30072c2ec2ad7e902e8805033809296ddcb0
    Parent: 101468e6a77cf4cc4343f3069933025a86ebaf765eb662644dc6536003831c1d
   Subject: Merge pull request #18 from Justinzobel/runtime611 (03154a53a1a8)
      Date: 2026-10-30 22:50:12 +0000
   History: 

    Commit: 101468e6a77cf4cc4343f3069933025a86ebaf765eb662644dc6536003831c1d
   Subject: Add org.jellyfin.JellyfinDesktop (23eebe530cc6)
      Date: 2025-12-27 13:09:06 +0000

    Commit: a00879190e5e977f1185537e67426773db3944bddffc01ff9c0aaa9e7ab7e741
   Subject: Add org.jellyfin.JellyfinDesktop (23eebe530cc6)
      Date: 2025-12-27 13:09:06 +0000

the Oct 30 one doesn’t play them, the 27 one does. also whole lotta fucked up UI glitches, doesn’t respect the tv and desktop launch flags, some major changes afoot.