trizen / pipe-viewer

A lightweight YouTube client for Linux, without requiring an API key.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Passing environment variable to mpv

manfred3000 opened this issue Β· comments

First off, thanks for this great app πŸ‘
I'd like to pass this LD_PRELOAD environment variable to mpv.
I've got next to no experience when it comes to using perl - what I tried (to no avail - it's working from the command line, though):

video_players                 => {
                                     mpv => {
                                              arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*",
                                              audio => "--audio-file=*AUDIO*",
                                              cmd => "LD_PRELOAD=`jemalloc-config --libdir`/libjemalloc.so.`jemalloc-config --revision` /usr/local/bin/mpv",
                                              fs => "--fullscreen",
                                              novideo => "--no-video",
                                              srt => "--sub-file=*SUB*",
                                            },
                                   },

Any help is appreciated,
thanks!

I no longer need this workaround since the underlying issue has been fixed upstream