Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change pages with two simultaneous windows open #46

Open
dRaiNe opened this issue May 1, 2018 · 0 comments
Open

Can't change pages with two simultaneous windows open #46

dRaiNe opened this issue May 1, 2018 · 0 comments

Comments

@dRaiNe
Copy link

dRaiNe commented May 1, 2018

How to reproduce:

  1. Open first .epub file (the file is stored in NTFS Windows 7 drive). So far navigation using arrow keys (left and right for previous/next page) works.
  2. Open different .epub file (again stored in NTFS drive in my case).
  3. Switch focus to the first window. Its navigation using keys no longer works, but in the second window it's working properly.

Ubuntu 16.04 x64.

Terminal output from the broken window:
Chapter count: 201
Loaded: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_048.html
Loaded: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_048.html
Loaded: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_049.html
Loaded: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_048.html
Could not read: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_049.html
Could not read: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_048.html
Could not read: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_049.html
Could not read: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_050.html
Could not read: /tmp/easy-ebook-viewer-cache-user/index_split_000_split_051.html

Debugging:

  • The reason why it can't read the files above is they don't exist, because the content of
    /tmp/easy-ebook-viewer-cache-user is overwritten by loading another book in separate window. Proposed solution: don't create temp files in root, but add separate directory for each book.
  • It seems to me the app deletes content of /tmp/easy-ebook-viewer-cache-user on startup. So it should delete it only if there isn't any process of this app currently running (eg. from terminal or directly launched from icon), as there might be another window open and we can't delete its /tmp/ cache.

Note:

  • I love this software especially in the dark theme. It's so lightweight and cool. Only feature I miss is search.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant