Package Details: plex-desktop 1.108.1.307-1

Git Clone URL: https://aur.archlinux.org/plex-desktop.git (read-only, click to copy)
Package Base: plex-desktop
Description: Plex desktop client for linux
Upstream URL: http://plex.tv
Keywords: media player plex
Licenses: unknown
Submitter: ludvigHz
Maintainer: username227
Last Packager: username227
Votes: 19
Popularity: 0.57
First Submitted: 2022-05-26 10:36 (UTC)
Last Updated: 2025-02-14 03:01 (UTC)

Required by (0)

Sources (5)

Pinned Comments

mrgrim commented on 2024-10-01 05:16 (UTC) (edited on 2024-10-01 05:20 (UTC) by mrgrim)

The Qt 6.7 problem is an issue where xdg-open inherits the environment of the Plex app causing kde-open to try to load the Qt 6.6 libraries from /opt/plex-desktop/lib due to the LD_LIBRARY_PATH set in Plex.sh.

This can be solved by editing the RUNPATH of the binaries using chrpath then removing the LD_LIBRARY_PATH line from Plex.sh. It turns out The main Plex library has a working RUNPATH but includes a bunch of automation cruft. The transcoding binary does NOT have it set, and QtWebEngineProcess needs no changes. In /opt/plex-desktop/bin run:

chrpath -r '$ORIGIN/../lib' Plex
chrpath -r '$ORIGIN/../lib' Plex\ Transcoder

However, this only exposes additional issues with all of the Qt environment variables set in this script. I couldn't find a super clean way to fix this, but interestingly enough KDE uses a little utility for their AppImage deployments to deal with this exact problem:

https://invent.kde.org/brauch/appimage-exec-wrapper/

Compile it and copy the exec.so file into /opt/plex-desktop/lib then alter Plex.sh like this:

https://gist.github.com/mrgrim/1357da402f8ceccaf8224e145fa6acc3

This could even allow using LD_LIBRARY_PATH and not using chrpath. The choice is yours. Using chrpath seems cleaner but pulls in a dependency.

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 Next › Last »

ludvigHz commented on 2022-12-14 16:32 (UTC)

For anyone wondering why this is out of date.

I've been trying to make the latest version of plex-desktop work here. But sadly have an issue with it getting stuck at the first loading screen with no error logs anywhere. If anyone can help out, please do! They have updated FFMPEG, MPV (and maybe QT) and their forks are no longer binary compatible with the arch packages, requiring the use of the forked versions included in the package.

(The same issues are valid for plex-htpc since they're essentially the same app)

Bobyl commented on 2022-11-24 19:51 (UTC)

@ludvigHz thank you for pinpointing the issue, using QT_QPA_PLATFORM=xcb did the trick. Thanks !

ludvigHz commented on 2022-11-24 17:01 (UTC)

Could you try running with QT_QPA_PLATFORM=xcb and see if that changes things? Considering you are on plasma, your environment might be set to use QTs wayland backend by default.

Bobyl commented on 2022-11-24 07:35 (UTC)

@matt17br plex-desktop is a snap image, so there is no real rebuilding to be done here. However, I just tried rebuilding plex-desktop: it doesn’t solve the segfault when using wayland instead of X11.

I just tried on a computer with an Nvidia dGPU: same issue.

matt17br commented on 2022-11-21 19:58 (UTC) (edited on 2022-11-21 19:59 (UTC) by matt17br)

@Bobyl and all those having issues since the last few days: try rebuilding the package. see the last few comments in https://aur.archlinux.org/packages/plex-media-server?com

Bobyl commented on 2022-11-20 08:31 (UTC)

@jimbodf Can't do that since I use plasma as my window manager.

jimbodf commented on 2022-11-18 05:30 (UTC)

@Bobyl @mfcmquintela I had the same issue. Uninstalling qt5-wayland did the trick for me.

Bobyl commented on 2022-11-16 19:10 (UTC)

@ludvigHz Here is the backtrace of a wayland segfault: https://pastebin.com/W4TXuCdr It occurs on computers using Intel iGPU (all my computers use integrated graphics, I'm therefore unable to test if this issue occurs with discrete Nvidia or AMD GPUs).

Which other information can I provide?

ludvigHz commented on 2022-11-15 23:03 (UTC)

@Bobyl @mfcmquintela I can't reproduce this issue myself. I don't think this has anything to do with Wayland/X11 either since plex-desktop only supports X.org and as such will run on XWayland on wayland compositors.

If you can supply some logs for the crashes, I can try to look into fixing it for you. But I can't really do anything without more information.