Skip to content

broken navigation inside epub files #266

Closed

Description

@morton-f

xreader 2.0.2
Cinnamon 4.0.6 Distro: Linux Mint 19.1 Tessa

When opening the epub file only the first page is displayed.
It is impossible to turn pages with PgUp, PgDn, cursors or mouse.

To reproduce:
Please try debian-handbook.epub freely available at https://debian-handbook.info/get/now/
This book has extensive menu for navigation which is not available in xreader.
You can browse it continuously or navigate with index in FBReader and Bookworm.
You can not browse or read any page by any means in xreader.

In context: Debian 9 blocks opening epub in the Document Viewer.

xreader
fbreader
bookworm

Activity

  1. tsjnachos117 commented on May 10, 2019

    @tsjnachos117

    After playing with some alternate XDG_* variables (see here), I've discovered that xreader dislikes something with ~/.local/share/mime/mime.cache. IDK what exactly this file is for, but deleting it seemed to fix the bug. Do be warned: since I have no idea what this file does (hence me experimenting in an alternate XDG_DATA_HOME directory) I can't guarantee that this will have no negative effects. I plan on investigating this further.

  2. tsjnachos117 commented on May 10, 2019

    @tsjnachos117

    Update: I've discovered aformentioned the $XDG_DATA_HOME/mime/mime.cache file can be rebuilt with update-mime-database $XDG_DATA_HOME/mime, in case anyone deleted this file and needs to re-build it. That said, once I rebuilt it on my machine, the error returned. For now, I'm going to modify my *.desktop file, and simply load a non-default XDG_DATA_HOME variable. That won't fix the bug, but it should at least give me a usable workaround.

    On that note, I'm guessing that the problem is with some third-party program setting some non-default mime type.

    Since I have no idea these other files/directories are, I've decided to upload the entire directory, in hopes that someone who does know more will figure the bug out. See below.

    mime.tar.gz

  3. Piiit commented on Jun 26, 2019

    @Piiit
    Collaborator

    I see the content correctly, just the TOC shows up only the two entries shown also in the screenshot of the OP. I use 2.0.2 on LM19.1 Cinnamon, btw....

  4. brainchild0 commented on Mar 11, 2020

    @brainchild0

    I also find that Xreader displays only top-level navigation entries in the TOC (index) pane, for open EPUB documents.

    This issue is likely to affect many users, as nested navigation is not uncommon in ebooks.

  5. added a commit that references this issue on May 11, 2020
  6. clefebvre commented on Sep 4, 2026

    @clefebvre
    Member

    EPUB support was removed from Xreader and reimplemented in Xepub: https://github.com/xapp-project/xepub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions