}
pdfFileName = out + "/" + o.getPrimaryFile().getName() + ".pdf";
midiFileName = out + "/" + o.getPrimaryFile().getName() + ".mid";
LILY_DIR = LilyOptions.getLilypondDir();
Executor exe = new Executor();
File folder = new File(LILY_DIR + "/usr/bin");
if (!folder.exists()) {
JOptionPane.showMessageDialog(new JFrame(), "LilyPond Directory " + LILY_DIR + "/usr/bin not found");
return;
}
// if (System.getProperty("os.name").equals("Linux")) {
// exe.execute("lilypond", folder, new String[]{"--pdf", "--output=" + out, lyFileName}, preRun(), postRun());
// } else {
exe.execute("lilypond", folder, new String[]{"--pdf", "--output=\"" + out + "\"", "\"" + lyFileName + "\""}, preRun(), postRun());
// }
} catch (Exception ex) {
ex.printStackTrace();
}