On Fri, 21 Feb 2020, Simon Tatham wrote:
> However, the override doesn't actually work! 

[...]

> In order to work around this, I tried to 'exec' the Lilypond binary
> with an argv[0] that does not appear on PATH at all, which inhibits
> the initial 'relocate' operation and causes the input value of
> LILYPOND_DATADIR not to be overwritten.

Hrm; that's really surprising. I have to admit that I haven't ever
tested LILYPOND_DATADIR.

Could you try changing /usr/bin/lilypond to be this instead:

#!/bin/sh
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/lilypond/2.18.2/guile"
exec "lilypond.real" "$@"

and see if that works better?

-- 
Don Armstrong                      https://www.donarmstrong.com

Vimes hated and despised the privileges of rank, but they had this to
be said for them: At least they meant that you could hate and despise
them in comfort.
 -- Terry Pratchett _The Fifth Elephant_ p111

Reply via email to