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.66
First Submitted: 2022-05-26 10:36 (UTC)
Last Updated: 2025-02-14 03:01 (UTC)

Dependencies (48)

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 2 3 4 5 6 7 .. 11 Next › Last »

sim590 commented on 2024-12-24 17:06 (UTC)

I get "there was a problem selecting this stream" when I try to change audio track of a video. Anything I can do to fix that?

Gamix commented on 2024-12-20 22:04 (UTC)

I have this error when I try to login into Plex :

kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by kde-open)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6KIOGui.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6KIOCore.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6CoreAddons.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6I18n.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6Service.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6Solid.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6WindowSystem.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6ConfigCore.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6Crash.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libKF6AuthCore.so.6)
kde-open: /opt/plex-desktop/lib/libQt6Core.so.6: version `Qt_6.8' not found (required by /usr/lib/libQt6Xml.so.6)

I'm on Plasma 6 with Qt 6.8.1

ak2021 commented on 2024-12-15 20:33 (UTC)

@azuredas

Excellent, that did the job, thanks.

azuredas commented on 2024-12-15 20:07 (UTC) (edited on 2024-12-15 20:07 (UTC) by azuredas)

@ak2021

Hey I fixed this with editing this file in /usr/share/applications/tv.plex.PlexDesktop.desktop

add to the bottom

StartupWMClass=Plex

username227 commented on 2024-12-11 15:58 (UTC) (edited on 2024-12-11 15:59 (UTC) by username227)

Regarding your statement about plex using updated libraries - as far as I can tell, they're still using ffmpeg6.1 months later, so I'm not holding my breath...

(EDIT: every once in awhile I go into a secondary linux installation and test the package without ffmpeg6.1 to see if it works with the regular ffmpeg yet; last time I tried this, no luck).

username227 commented on 2024-12-11 15:57 (UTC)

@Derppening. No need to apologize. I had a feeling that removing only the one line would be enough; however, on the off chance that there was another reason for your including those lines, I had just taken them all out. It should not affect the usability of the package, so I don't see any reason to push another fix now. I can always add them back in after the next release.

Derppening commented on 2024-12-11 15:23 (UTC)

@username227 What I meant to show was just to remove this line:

rm -rf $pkgdir/opt/${pkgname}/lib/libswresample.so*

The other lines didn't need to be removed.

I tried to show it in diff syntax but there's no highlighting. Sorry for the confusion.

username227 commented on 2024-12-11 14:56 (UTC)

OK. I don't understand why some people are having the issue while others, including myself, are not. Nevertheless, there's no harm in keeping additional files in the package, so I've pushed this update that @Derppening mentioned. Let me know if this solves the issue for those who are having it. thanks.

Derppening commented on 2024-12-11 13:59 (UTC)

@jianglai @NormanNewguy I am able to fix it by manually copying libswresample.so.4 from the tar.bz2 into /opt/plex-desktop/lib.

I think until Plex desktop uses libswresample.so.5, this line needs to be deleted from the PKGBUILD:

   rm -rf $pkgdir/opt/${pkgname}/lib/libdrm.so*
   rm -rf $pkgdir/opt/${pkgname}/lib/libdrm_*.so*
   rm -rf $pkgdir/opt/${pkgname}/lib/libpciaccess.so*
-  rm -rf $pkgdir/opt/${pkgname}/lib/libswresample.so*
   rm -rf $pkgdir/opt/${pkgname}/lib/libva.so*
   rm -rf $pkgdir/opt/${pkgname}/lib/libva-*.so*