DjVu Viewing Helper

Your rating: None Average: 5 (1 vote)

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:

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.

Application versions: 
File openrepos-djvulibre-open-0.1.1-1.noarch.rpm52.13 KB26/08/2020 - 16:43
File openrepos-djvulibre-open-0.1.1-2.noarch.rpm52.24 KB26/08/2020 - 17:37
File openrepos-djvulibre-open-0.2.0-2.noarch.rpm53.62 KB11/09/2020 - 16:33
File openrepos-djvulibre-open-0.3.0-4.noarch.rpm55.01 KB30/11/2020 - 19:33
File openrepos-djvulibre-open-0.3.1-3.noarch.rpm53.98 KB16/01/2022 - 13:51