On 03/07/2012 11:09 AM, Rutger Hofman wrote:
On 03/07/2012 09:12 AM, David Kastrup wrote:
Stjepan Horvat<zvanste...@gmail.com> writes:

On Tue, Mar 6, 2012 at 5:48 PM, David Kastrup<d...@gnu.org> wrote:
Stjepan Horvat<zvanste...@gmail.com> writes:

Hello..can somebody please tell me how to get vim and a pdf viewer
(xpdf or evince of zathura) to work with vim lilypond-invoke-editor
[snip]

Evince appears to have its own set of obstacles. Some Ubuntu pages seem
to suggest the problem (Permission denied) is related to apparmor.d but
I have no clue how to make that behave as desired.

I got it to work after all on Ubuntu Lucid:

I followed instructions in http://lists.gnu.org/archive/html/lilypond-user/2007-06/msg00185.html (and Mark Knoop's follow-up at a lower speed). IFAIU, this configures Gnome apps to handle 'textedit' commands by invoking lilypond-invoke-editor.

The apparmor.d stuff:

Edit /etc/apparmor.d/abstractions/evince to add the following 2 lines (replace /usr/ with the prefix of your Lilypond installation):

/usr/bin/lilypond-invoke-editor Ux,
/usr/bin/lilypond-wrapper.guile Ux,

The second line appears necessary because lilypond-invoke-editor is a symlink to lilypond-wrapper.guile which is actually executed.

Then

$ sudo /etc/init.d/apparmor reload

Rutger

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

Reply via email to