lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vim pointing to pdf-viewer and reverse


From: Rutger Hofman
Subject: Re: vim pointing to pdf-viewer and reverse
Date: Wed, 07 Mar 2012 11:26:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19

On 03/07/2012 11:09 AM, Rutger Hofman wrote:
On 03/07/2012 09:12 AM, David Kastrup wrote:
Stjepan Horvat<address@hidden> writes:

On Tue, Mar 6, 2012 at 5:48 PM, David Kastrup<address@hidden> wrote:
Stjepan Horvat<address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]