How to set jellyfin server flatpak to start automaticly when system boots up?

I was doing this earlier wit deb version, but now with flatpak i dont know how to do it.

I installed it via popshop on linux pop os and now i have icon in my apps meny but its anoying to start it manualy every time i restart my pc…

  • qaz@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    10 months ago

    There are several options:

    • Create a systemd service

    +: Can launch application without logging in

    -: Requires learning how to add a systemd service

    • Autostart application on startup

    +: Easy

    -: Requires logging in before it starts

    • Use system Docker container

    +: Quite easy

    -: Works without logging in

    • Use Podman container with systemd-service

    +: Doesn’t require root permissions

    I recommend going with Docker because Flatpak isn’t really meant for server applications.

  • gnuplusmatt@reddthat.com
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    10 months ago

    I’d have thought it was less hassle to use the jellyfin OCI container in either docker or podman. podman will even generate the systemd service file for you

    • batman654987@lemmynsfw.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Isnt docker kind of virtualisation? Is it realy required for this? I would expect flatpak to have a way of autostarting software… 🤔🤷‍♂️

      • richmondez@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        10 months ago

        Docker and Flatpack are both containerization technologies and work in similar ways under the hood. Docker is more geared towards running headless services that other systems access while flatpack is more geared towards desktop gui applications that are interacted with from the same system they run on.

      • gnuplusmatt@reddthat.com
        link
        fedilink
        English
        arrow-up
        8
        ·
        10 months ago

        Docker/podman are not virtualisation, they are containerisation. The system groups all the processes into a namespace and executes them on the same host/kernel as the base system. There is no overhead of virtualisation as its not creating virtual hardware or running a whole OS. Its more like the flatpak you’re already running than a vm

  • Possibly linux
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    I think you may be doing this wrong. Maybe you should consider containers?