DjVu Viewing Helper
This installs a MIME type handler for DjVu files.
As there is no native support for that file type, I have chosen to do a workaround. The helper script will convert the djvu temporarily into PDF, and launch Sailfish Office (a.k.a. "Documents") to open it. NOTE: this conversion is not fast. You will have to excert some patience for the files to open.
Not ideal, but it allows you to view djvu files you have or encounter.
NOTE: after installation you have to enable the mime type handler in jolla-settings (available in the djvulibre-open-0.3.0 version).
To setup manually run these commands as regular user in the terminal:
lca-tool --setmimedefault image/vnd.djvu openrepos-djvulibre-open lca-tool --setmimedefault image/vnd.djvu+multipage openrepos-djvulibre-open lca-tool --setmimedefault image/x.djvu openrepos-djvulibre-open lca-tool --setmimedefault image/x-djvu openrepos-djvulibre-open
To avoid typing, you can get the little script from the git repo: https://gitlab.com/nephros/openrepos-djvulibre/-/raw/master/files/install-mimes-user.sh
I am looking for a way to automate this, but it's not possible from the RPM alone as it must be run as user. Possibly a one-shot systemd service can do it. Suggestions welcome.
BTW, this depends on my build of the djvulibre tools and libs. If you are a coder maybe you can use those to create a native application or plugin.
- Software Site: http://djvu.sourceforge.net
- Git repo: https://gitlab.com/nephros/openrepos-djvulibre
Category:
Attachment | Size | Date |
---|---|---|
openrepos-djvulibre-open-0.1.1-1.noarch.rpm | 52.13 KB | 26/08/2020 - 16:43 |
openrepos-djvulibre-open-0.1.1-2.noarch.rpm | 52.24 KB | 26/08/2020 - 17:37 |
openrepos-djvulibre-open-0.2.0-2.noarch.rpm | 53.62 KB | 11/09/2020 - 16:33 |
openrepos-djvulibre-open-0.3.0-4.noarch.rpm | 55.01 KB | 30/11/2020 - 19:33 |
openrepos-djvulibre-open-0.3.1-3.noarch.rpm | 53.98 KB | 16/01/2022 - 13:51 |
(none)
Laatste reacties