deso

Gentoo > How to get Plex client to work

  1. Get the latest Plex client archive from Flathub's GitHub, for example:

    mkdir plex
    cd plex
    wget https://artifacts.plex.tv/plex-desktop-stable/1.110.0.351-4e48eb83/linux/Plex-1.110.0.351-4e48eb83-linux-x86_64.tar.bz2
    tar -xvjf Plex*.tar.bz2
    
  2. Patch out missing or updated libraries:

    patchelf --replace-needed libwebp.so.6 libwebp.so.7 lib/libQt6WebEngineCore.so.6
    patchelf --replace-needed libxml2.so.2 libxml2.so lib/libQt6WebEngineCore.so.6
    patchelf --replace-needed libxml2.so.2 libxml2.so lib/libQt6WebEngineQuick.so.6
    
  3. Create a start script, e.g. start.sh, to prevent segmentation faults:

    #!/bin/bash
    
    BASE_DIR=$(dirname "$(readlink -f "$0")")
    export QML_IMPORT_PATH=$BASE_DIR/qml/
    export QML2_IMPORT_PATH=$BASE_DIR/qml/:$QML2_IMPORT_PATH
    export QTWEBENGINEPROCESS_PATH=$BASE_DIR/bin/QtWebEngineProcess
    export QTDIR=$BASE_DIR
    export DISABLE_WAYLAND=${DISABLE_WAYLAND:-1}
    export PLEX_USERDATA_DIR=${SNAP_USER_COMMON:-${XDG_DATA_HOME:-$HOME/.local/share}/plex}
    export PLEX_RESOURCE_PATH=$BASE_DIR/resources
    export PLEX_STORAGE_INI_DIR=$PLEX_USERDATA_DIR
    export PLEX_LOG_DIR=$PLEX_USERDATA_DIR/Logs
    export PLEX_MEDIA_SERVER_RESOURCES=$BASE_DIR/resources
    "$BASE_DIR"/bin/Plex "$@"
    
  4. Run it!

    chmod +x start.sh
    ./start.sh
    

Notes

18:59 19.11.2025