On Sat, 2019-02-09 at 11:05 +0100, Federico Bruni wrote:
[...]
So far so good.
By the way, it opens once or twice? If you are using a LilyPond
installer released before October 2018 (today the answer is yes),
you might get two windows. If you are using a version provided by
your distro, you won't probably have this bug. See this PR:
<https://github.com/gperciva/gub/pull/48>
It opens once. I am using LilyPond 2.19.82 downloaded last August.
When I click on a link in the displayed file, I get:
Feb 9 18:11:38 vesta kernel: [ 992.243804] audit: type=1400
audit(1549735898.161:48): apparmor="DENIED"
operation="exec" profile="/usr/bin/evince"
name="/usr/local/bin/lilypond-wrapper.guile" pid=3261
comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
Although all of the other 71 files in ~/.local/share/applications/
have
me as owner and group, the file mimeapps.list has owner and group set
to root. I looked at my partner's computer, which is running Ubuntu
16.04, and there the corresponding file has owner and group set to the
user, rather than root. (Presumably this is some change made in
Ubuntu, since I don't think I can have done anything to change it.)
So I tried changing the ownership of that file on my computer, and
sure
enough, I no longer see an error in the log file when evince is
started. But when I click on a link in the Lilypond file I still get:
Feb 9 18:34:45 vesta kernel: [ 200.968460] audit: type=1400
audit(1549737285.711:45): apparmor="DENIED"
operation="exec" profile="/usr/bin/evince"
name="/usr/local/bin/lilypond-wrapper.guile" pid=2507
comm="evince" requested_mask="x" denied_mask="x" fsuid=1000 ouid=0
Clearly I can't sensibly change the ownership of
/usr/local/bin/lilypond-wrapper.guile, and presumably this is the sort
of thing AppArmor is supposed to sort out. I did, however, try adding
a line specifically for this file in
/etc/apparmor.d/local/usr.bin.evince, but it hasn't helped.