openlilylib / LO-ly

LibreOffice-LilyPond extension
13 stars 6 forks source link

Configuration using flatpak frescobaldi on Linux #33

Closed silvain closed 1 year ago

silvain commented 2 years ago

I am using LO 7.3.03. I have been using the extension sucessfully for a long time. Now I have a Flatpak Frescobaldi installation 3.1.3 using Lilypond 2.22.1 (Ubuntu Mate 20.04) The extension does not function, I think because I cannot find a correct for lllypond For the editor, I had to indicate flatpak run org.frescobaldi.Frescobaldi But for the Lilypond executable, I put home/silvain/lilypond/usr/bin/lilypond, whcih correspond to an older version (2.22), and I cannot find the executable Frescobaldi is using (it indicates /app/bin/lilypond, but I cannot find such a location). As a result, I get the error Avertissement : « (gs -q -dNODISPLAY -dNOSAFER -dNOPAUSE -dBATCH -dEPSCrop -dAutoRotatePages=/None -dPrinted=false /tmp/lilypond-tmp-1378956) » a échoué (139) Do you have any indication as how to configure the extension correctly

KlausBlum commented 2 years ago

Salut Silvain,

recently there has been a similar issue: https://github.com/OOoLilyPond/OOoLilyPond/issues/4 (Please note that the current development has moved to that new repository.)

As far as I know, "gs" at the beginning of the error message is the ghostscript executable which is called by lilypond after creating a ps file.

Unfortunately I have absolutely no knowledge of flatpak, but I've read that every application is executed in its own sandbox, and not every application has access to every folder. That might be a problem.

jeanas commented 1 year ago

This has nothing to do with Frescobaldi, since your installation of LilyPond is independent from Frescobaldi. It isn't related to OOOly either. The actual problem is that you used /.../usr/bin/lilypond while the correct path was /.../bin/lilypond. This type of problem does not exist with LilyPond 2.24, where usr/ does not exist, so I'm closing this issue.

Regarding how to use custom LilyPond versions in Flatpak Frescobaldi, see

https://github.com/flathub/org.frescobaldi.Frescobaldi