@Derppenning - thanks for letting me know. Agreed, much better solution. Done.
Search Criteria
Package Details: plex-desktop 1.108.1.307-3
Package Actions
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: | 18 |
Popularity: | 0.22 |
First Submitted: | 2022-05-26 10:36 (UTC) |
Last Updated: | 2025-05-02 02:19 (UTC) |
Dependencies (48)
- alsa-lib
- dbus (dbus-gitAUR, dbus-selinuxAUR)
- expat (expat-gitAUR)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-ffplayoutAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-gitAUR, ffmpeg-full-gitAUR, ffmpeg-amd-full-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- freetype2 (freetype2-macosAUR, freetype2-qdoledAUR, freetype2-gitAUR, freetype2-qdoled-aw3225qfAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc-libs-snapshotAUR)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR)
- harfbuzz (harfbuzz-gitAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- lcms2 (lcms2-ff-gitAUR, lcms2-gitAUR, lcms2-ffAUR)
- libdrm (libdrm-gitAUR)
- libgl (libglvnd-gitAUR, amdgpu-pro-oglp-legacyAUR, nvidia-340xx-utilsAUR, amdgpu-pro-oglpAUR, libglvnd)
- libjpeg-turbo (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR)
- libva (libva-gitAUR, intel-media-stack-binAUR, libva-headlessAUR)
- libwebp (libwebp-gitAUR)
- libx11 (libx11-gitAUR)
- libxcb (libxcb-gitAUR)
- Show 28 more dependencies...
Required by (0)
Sources (5)
- http://ftp.us.debian.org/debian/pool/main/libw/libwebp/libwebp6_0.6.1-2.1+deb11u2_amd64.deb
- https://artifacts.plex.tv/plex-desktop-stable/1.108.1.307-dd5b87aa/linux/Plex-1.108.1.307-dd5b87aa-linux-x86_64.tar.bz2
- https://github.com/flathub/tv.plex.PlexDesktop/raw/master/tv.plex.PlexDesktop.desktop
- https://github.com/flathub/tv.plex.PlexDesktop/raw/master/tv.plex.PlexDesktop.png
- iconpatch.patch
username227 commented on 2025-05-02 02:20 (UTC) (edited on 2025-05-02 02:21 (UTC) by username227)
Derppening commented on 2025-05-02 01:56 (UTC)
The official repository just released libxml2-legacy
(https://archlinux.org/packages/extra/x86_64/libxml2-legacy/) to provide libxml2.so.2
.
Is it possible to switch to use that as a dependency instead, since it seems to be a more permanent fix than using a symlink to a (potentially) binary-incompatible version of the library?
username227 commented on 2025-05-02 01:24 (UTC)
@oech3, the only difference I can think of regarding the symlink is that there would be one less package installed, and one less dependency. might simplify things though. i'll consider it after plex updates again (it's been much longer than usual; looks like they completely revamped the apk on android, hope they're not going to mess with the app too much...) Main thing today was to get the program working again, and when I saw that someone had already added the package today to the AUR, I just used that.
oech3 commented on 2025-05-01 22:16 (UTC)
Does anyone interested in replacing bundled Qt6 of this? It potentially reduces translative deps for old libs.
oech3 commented on 2025-05-01 22:13 (UTC)
Adding symlink $pkgdir/opt/${pkgname}/lib/libxml2.so.2 by package side should be enough (or patchelf.)
colpepe commented on 2025-04-01 17:39 (UTC)
I also got the error: kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by kde-open) I ALSO was able to fix with MrGrim's comment from 10-01-24: "mrgrim commented on 2024-10-01 05:16 (UTC)"
Knurz commented on 2025-01-27 12:06 (UTC)
I still got the same error as @DerHerrGammler. This is not really a fix, but either a patch that will be overwritten in the next update (I suppose): Change the startup-script in /opt/plex-desktop/Plex.sh, add a comment to line 3 leaving LD_LIBRARY_PATH to prev. values/unset.
This fixed the login-problem for me. Tested it by playing some SD/HD Videos (direct, non-transcoded) and it worked fine on my system (KDE w. Wayland).
diegod commented on 2025-01-08 23:27 (UTC)
Thanks @mrgrim! https://aur.archlinux.org/packages/plex-desktop?O=20#comment-992918 It worked! I could login using X, but on Wayland it didin't work.
engraved commented on 2025-01-08 13:39 (UTC)
I tried the fix by @mrgrim, but I am getting on the latest KDE plasma and NVIDIA Drivers 565.77:
[10092:10137:0108/143217.015756:ERROR:gpu_channel_manager.cc(771)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[10092:10137:0108/143217.015758:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[10092:10137:0108/143217.015762:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[10092:10137:0108/143217.015903:ERROR:gl_context_egl.cc(277)] eglCreateContext failed with error EGL_BAD_CONTEXT
[10092:10137:0108/143217.015941:ERROR:gpu_channel_manager.cc(771)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[10092:10137:0108/143217.015945:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[10092:10137:0108/143217.015949:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[10092:10137:0108/143217.016616:ERROR:gl_context_egl.cc(277)] eglCreateContext failed with error EGL_BAD_CONTEXT
[10092:10137:0108/143217.016623:ERROR:gpu_channel_manager.cc(771)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[10092:10137:0108/143217.016626:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context
[10092:10137:0108/143217.016631:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
matt17br commented on 2025-01-03 15:32 (UTC)
The fix described by @mrgrim at https://aur.archlinux.org/packages/plex-desktop?O=20#comment-992918 worked for me!
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 causingkde-open
to try to load the Qt 6.6 libraries from/opt/plex-desktop/lib
due to theLD_LIBRARY_PATH
set inPlex.sh
.This can be solved by editing the
RUNPATH
of the binaries usingchrpath
then removing theLD_LIBRARY_PATH
line fromPlex.sh
. It turns out The main Plex library has a workingRUNPATH
but includes a bunch of automation cruft. The transcoding binary does NOT have it set, andQtWebEngineProcess
needs no changes. In/opt/plex-desktop/bin
run: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 alterPlex.sh
like this:https://gist.github.com/mrgrim/1357da402f8ceccaf8224e145fa6acc3
This could even allow using
LD_LIBRARY_PATH
and not usingchrpath
. The choice is yours. Usingchrpath
seems cleaner but pulls in a dependency.