Up to recently, this bug was easily fixed by removing the "djvulibre-
desktop" package, but some recent upgrade seems to have brought it back
with a vengeance (some time before but not long before 2019-05-15).

Since Ubuntu is visibly in no hurry to fix this, let me offer a
workaround: create ~/.local/share/mime/packages/override.xml with the
following content:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
  <!-- Created on 2019-05-15 to fix a reappearance of this bug: -->
  <!-- https://bugs.launchpad.net/ubuntu/+source/djvulibre/+bug/1778088 -->
  <!-- (DjVu seen as image/vnd.djvu instead of image/vnd.djvu+multipage) -->
  <!-- https://twitter.com/gro_tsen/status/1128645721614356480 -->
  <!-- Run "update-mime-database ~/.local/share/mime" after creating this. -->
  <!-- Use "xdg-mime query filetype some-file.djvu" to test. -->
  <!-- - David A. Madore -->
  <mime-type type="image/vnd.djvu+multipage">
    <comment>DjVu image</comment>
    <alias type="image/x-djvu"/>
    <magic priority="99">
      <match value="AT&amp;TFORM" type="string" offset="0">
        <match value="DJVU" type="string" offset="12"/>
      <match value="FORM" type="string" offset="0">
        <match value="DJVU" type="string" offset="8"/>
    <glob pattern="*.djvu"/>
    <glob pattern="*.djv"/>

— and then run “update-mime-database ~/.local/share/mime” to regenerate
the local MIME cache.

See also https://twitter.com/gro_tsen/status/1128645721614356480 and

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  DjVu Files cannot be opened

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to