Nah you've got the right idea, but your VLC is not loading libraries from /usr/lib64/ apparently.
I just ended up fixing this same thing myself, setting up a new Linux system. On my older system I had done that kind of linking into /usr/lib/ but for whatever reason it didn't work on this new system. Instead of trying to figure out the right directory to link the library into, I took the opportunity to try out what I had been thinking would be a better solution. (I'd like to avoid messing with system library directories.)
NOTE: In my flatpak installation of MakeMKV, I don't have that "x86_64/stable" directory in the flatpak files path. In my case the files are instead under "x86_64/current". So I will be using "x86_64/current" in the examples below. Double-check which path is actually correct on your system... if yours really is using "stable" rather than "current", then just substitute in "stable" for "current" when you try this out.
OK so first of all, I tested launching VLC from a shell prompt with a command like this:
Code: Select all
LD_LIBRARY_PATH=/var/lib/flatpak/app/com.makemkv.MakeMKV/current/active/files/lib vlc
That worked... VLC was able to play a Blu-ray disc.
So at this point, I could make an alias or wrapper script for launching VLC like this, if I wanted to launch it from the command line in the future. I did do that, adding this alias into my shell startup scripts:
Code: Select all
alias vlc="LD_LIBRARY_PATH=/var/lib/flatpak/app/com.makemkv.MakeMKV/current/active/files/lib /usr/bin/vlc"
However usually I'd rather use the graphical application launcher to start VLC. To support that, I first made a local copy of the VLC app description ("desktop file"):
Code: Select all
mkdir -p ~/.local/share/applications/
cp /usr/share/applications/vlc.desktop ~/.local/share/applications/
Then I opened that local copy "~/.local/share/applications/vlc.desktop" in a text editor. Found the Exec line which looks like this:
Code: Select all
Exec=/usr/bin/vlc --started-from-file %U
and I changed it to look like this:
Code: Select all
Exec=env LD_LIBRARY_PATH=/var/lib/flatpak/app/com.makemkv.MakeMKV/current/active/files/lib /usr/bin/vlc --started-from-file %U
Saved those changes and exited the text editor.
Then I ran this command to make sure the launcher was aware of this local definition:
Code: Select all
update-desktop-database ~/.local/share/applications/
And that should do it; VLC started from the application launcher can play Blu-ray.
(Remember to use "stable" instead of "current" in the paths above if that really is correct for your system.)