[snap] permission restriction on /usr breaks TexMaths extension
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libreoffice (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am the developer of a LibreOffice extension (the TexMaths equation editor) and I got reports of users who can’t use this extension with the snap version of LibreOffice, because of permission restrictions on /usr (the TexMaths extension, and probably others, use external programs located in /usr/bin).
Indeed, the TexMaths extension uses external programs like /usr/bin/latex, /usr/bin/dvipng, /usr/bin/dvisvgm and the texlive LaTeX packages to produce LaTeX equations in LibreOffice (in Writer, Draw and Impress components). Since the access to /usr from the snap packages is not possible, this breaks TexMaths.
I guess there are other extensions that could be affected by this problem.
I tested and reproduced the issue in Ubuntu 16.04.3 LTS (64 bits) with the snap package of LibreOffice 5.4.4.2.
Here is a link to download and test TexMaths (please note that texlive must be installed before) : http://
description: | updated |
summary: |
- Libreoffice snap permission restriction on /usr breaks TexMaths - extension + [snap] permission restriction on /usr breaks TexMaths extension |
tags: | added: snap |
Given that TexMaths is configurable and lets the user change the path to the latex binary, I guess one option would be to ship latex within the snap. That might not be very user-friendly, as I'm not convinced the extension would find it without the user telling it where to look for it. And we need to check how much bigger the resulting snap would be with a latex installation.
As the extension is multi-platform, I guess shipping latex within the extension itself is not really an option.