Baldomo / open-in-mpv

Simple web extension to open videos in mpv
GNU General Public License v3.0
120 stars 7 forks source link

Compatibility with Vivaldi Browser #25

Closed fortbis closed 9 months ago

fortbis commented 9 months ago

Question Description

Previously created issue explaining why this doesn't work in the Vivaldi browser, and how it can be resolved.

_«Vivaldi uses LD_PRELOAD='' to load ffmpeg, and this causes an error with ffmpeg's mpv. Without LDPRELOAD everything works fine.»

Please suggest a way to solve this without breaking with every system update. Thanks!

Code Snippet (optional)

No response

Checklist:

Baldomo commented 9 months ago

This is not a problem which should be solved by this extension. I do not intend to modify system variables or, in general, the user's environment. Thanks to #26 you can launch the player by setting the executable configuration field to something like env -u LD_PRELOAD mpv, which will launch mpv by unsetting LD_PRELOAD. I don't recommend doing it because stuff might break inside Vivaldi, you should probably create a wrapper script and put that in executable. This is something that should be configurable in Vivaldi.