LD_LIBRARY_PATH not set for application unless in shell

I’m working on packaging pympress pympress: init at 1.2.0 by tbenst · Pull Request #62137 · NixOS/nixpkgs · GitHub, which is an awesome presentation tool for pdfs (presenter& audience view, video support…). However, for some reason pympress cannot find the relevant VLC lib unless I’m in a shell:

> pympress has_video.pdf
[ video fails ]
> nix-shell -p pympress
$ pympress has_video.pdf
[ video succeeds ]

I’m pretty baffled by this, any tips?

1 Like

video is playing for
\movie (ok e.g. for pympress)
not for
\includemedia (ok e.g. for okular)
[but not ok vice versa ]

but still I get

main filter error: Failed to create video converter
vdpau_avcodec generic error: Xlib is required for VDPAU

with pympress and videos