-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Dienstag, 26. Januar 2010 17:16:04 schrieb Federico Bruni: > Hi, > > I'm trying to adapt the configuration explained here: > http://lists.gnu.org/archive/html/lilypond-user/2007-06/msg00185.html > > I'd like to set Frescobaldi as editor, so I've changed the line in the > script as follows (I've copied from the preferences of Okular, where > this works): > frescobaldi --smart --line %l --column %c > > but it launches Frescobaldi with an empty file.
Of course. You are not passing on the file name to frescobaldi (%l is the line number, %c is the column in okular, but where is the file name???) > If I use this line instead: > frescobaldi ${LINENUM}:${STARTPOS} ${FILENAME} Here you are calling e.g. frescobaldi 5:3 myfile.ly of course, frescobaldy understands both arguments as file names, thus the first file named "5:3" can't be found or opened... You really need to add the --line and --column and pass ${LINENUM} as argument of --line and ${STARTPOS} as argument of --column... > it launches Frescobaldi, opens the right file (but it does not point > to a specific note (just the beginning of the file) > plus a strange second file which can't be read and looks empty. > > If I try this, Frescobaldi opens and crashes: > frescobaldi --smart --line %l --column %c +${LINENUM}:${STARTPOS} > ${FILENAME} The %l is defined only by okular as the shortcut where the line number is inserted. evince seems to have different shortcuts, so you tell evince to go the line numbered "%l", which doesn't make sense... I suppose you rather mean: frescobaldi --smart --line ${LINENUM} --column %c ${STARTPOS} ${FILENAME} Cheers, Reinhold - -- - ------------------------------------------------------------------ Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial & Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFLXxnrTqjEwhXvPN0RArWlAJ0WZ/We0EmI1IeCvjBtwFYd3ciV4wCgylRo YyZ8Gp6P5lNrnyYcLvffeN0= =9wbu -----END PGP SIGNATURE----- _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user