Jump to content

Displaying LilyPond's data directory

From LilyPond wiki
Revision as of 16:33, 18 February 2026 by Ksnortum (talk | contribs) (How to display LilyPond's data directory)
(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.

\version "2.24.4"
#(display
  (string-append "\nThe LilyPond data directory is located at: "
                 (ly:get-option 'datadir)))

(Thanks to Mark Knoop for this code.)