Op Sat, 17 Mar 2012 11:05:59 -0000
"Phil Holmes" <m...@philholmes.net> schreef:

> ----- Original Message ----- 
> From: "Wilbert Berendsen" <wbs...@xs4all.nl>
> > But in upcoming Frescobaldi 2.0.5 I have added some additional
> > logic to look for LilyPond in other locations, even if they are not
> > in the PATH. Currently "C:\Program Files\LilyPond\usr\bin" is
> > searched, and I can add more (need to test current git on Windows
> > with newer LilyPond versions yet).
> >
> > -- 
> > Wilbert Berendsen
> > (http://www.wilbertberendsen.nl)
> 
> 
> Clearly for windows only, but an alternative is to look in the
> program files directory for the shortcut.  c# code that does this is:
> 
> string ProgMenu = 
> Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
> string [] LilyDirs = Directory.GetDirectories(ProgMenu, "*lily*");

Thanks for the hint!

I now look in the ProgramFiles environment variable and search that
path for 'LilyPond*\\usr\\bin' subfolders. This should find normally
installed LilyPonds in Windows.


-- 
Wilbert Berendsen
(http://www.wilbertberendsen.nl)


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to