johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.26k stars 256 forks source link

"File not found" error with Ranger when using Flatpak version #1269

Closed olstach closed 2 months ago

olstach commented 4 months ago

Describe the bug When the Flatpak version of Foliate is set as the default app for epub files in Ranger, it displays a "Book cannot be opened: File not found" error. The snap version works fine.

To Reproduce Steps to reproduce the behavior:

  1. Add the following line to ~/.config/ranger/rifle.conf: ext epub, has com.github.johnfactotum.Foliate, X, flag f = com.github.johnfactotum.Foliate "$@"
  2. Start Ranger in a new terminal session and try to open an .epub file

Expected behavior Foliate opens the selected file correctly.

Version:

johnfactotum commented 3 months ago

Not familiar with Ranger, but to open files with Flatpak, you need to use --file-forwarding. See https://github.com/johnfactotum/foliate/issues/1249.