lilypond-user
[Top][All Lists]
Advanced

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

point-and-click (was: Re: vim pointing to pdf-viewer and reverse)


From: Rutger Hofman
Subject: point-and-click (was: Re: vim pointing to pdf-viewer and reverse)
Date: Tue, 04 Nov 2014 08:48:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

One more step needed nowadays

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,

# ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable/usr.bin.evince
# /etc/init.d/apparmor restart

On 03/07/2012 11:26 AM, Rutger Hofman wrote:
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]