Displaying LilyPond's data directory

Revision as of 15:10, 19 February 2026 by Jean Abou Samra (talk | contribs) (Print it to stderr)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In Frescobaldi, you can install LilyPond while editing the Settings options. However, it is not always clear what directory LilyPond is installed in.

Using the following code will display LilyPond’s data directory in the LilyPond log.

\version "2.24"

#(ly:message "The LilyPond data directory is located at: ~a" (ly:get-option 'datadir))

(Thanks to Mark Knoop for this code.)