babluboy / bookworm

A simple ebook reader for Elementary OS
GNU General Public License v3.0
1.32k stars 101 forks source link

Fails to open file with relative path #366

Open hosiet opened 2 years ago

hosiet commented 2 years ago

Forwarding downstream Debian bug report: https://bugs.debian.org/992472


I ran /usr/bin/com.github.babluboy.bookworm ./foo.epub and it complained:

[WARNING 22:12:14.238713] bookworm.vala:681: EBook not found at provided location:foo.epub
[FATAL 22:12:14.244095] [GLib-GIO] g_file_query_exists: assertion 'G_IS_FILE(file)' failed

Using an absolute path worked. This is rather surprising behavior.

babluboy commented 2 years ago

Thanks for your interest in Booworm and raising this issue.

Currently Bookworm is an UX app and not meant to be used from command line. If you navigate to a book using the directory structure inside Bookworm UI, it picks up the absolute path and hence works. Relative paths needs to be handled correctly which is missing at the moment.

however I will keep this issue open to add capability for working with relative paths