-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
foliate could not open file #401
Comments
Hmm. I don't have a dual boot setup, but I can open files from external NTFS drives fine. "Empty Response" is also strange. I think that's usually the error message when the request is denied for being cross-origin. But opening files from mounted drives should behave the same as other local files. Are you using Snap, Flatpak, or .deb/PPA? |
I installed it using snap. |
I understand now why you asked installation method. |
Also when I click on the open another file ... button above in picture, it it doesn't list any of the ntfs drives in opened window. |
Thank you, I had faced the same issue when installed using SNAP. I removed it and installed using PPA. Regards.... |
Note: I've requested removable-media be auto-connected to Foliate. This should solve many of these issues. https://forum.snapcraft.io/t/auto-connect-removable-media/18653 |
@johnfactotum This could be solved for all cases by using the FileChooser portal. However, Foliate does not seem to be using that, even though According to the docs, the FileChooser portal should work automatically when you use Note: an easy way to check if you're using the portal file chooser in the snap is to click on "home". With the portal, this will point to the real user's home. With the regular file chooser, this will point to the snap-specific home folder. |
I'm using |
I installed foliate today via SNAP after seeing a tweet recommending it. It's an excellent alternative to Calibre! But I'm facing the same problem. My Calibre library is at another mounting point. When I try to open a file from that mounting point the error "Empty Response" occurs. Despite this small problem, I will continue to use the program in my PC. Thank you so much! |
@fabiolimace can you access those files after you run |
@galgalesh , it works! Thank you! I know nothing about snaps. Can this connection be made automatically when fist installed? Should we use the option "--classic" when installing via command line for full access? I just read some pages of the documentation: https://snapcraft.io/docs/interface-management |
Yes, I have put in a request to make this automatically connected: https://forum.snapcraft.io/t/auto-connect-removable-media/18653 Normally, this should not be required. Normally, the OS should grant Foliate access to any files the user chooses, by using the FileChooser portal, but that does not work right now for the Foliate snap and I need to further investigate why. In the meantime the auto-connection should solve most users problems. You should not install Foliate using This permissions system is a bit complicated for users currently, but a bunch of people are working hard to solve those issues. The "XDG desktop portals" will solve many issues and the Snap developers are working on additional ways to make the app ask the user for additional permissions when the app needs it. However that needs some more time before it will be available. |
Note: |
Great! Thanks again, @galgalesh! |
for what it's worth, the latest deb (2.4.2) does the same with network locations / sftp, while the snap version seems to work just fine (came across this after I came across a bunch of epubs atril wouldn't open) |
I don't really like riding on the back of previous issues, especially ones that have been around for a while - but I suspect this is still current, and just bit me, so I'll offer it up anyway. It starts to look like a feature of snaps. 2.5.0 installed as a snap. ZFS filesystem, zpool
Uninstalled the snap, and installed the 2.5.0 .deb via PPA from https://launchpad.net/~apandada1/+archive/ubuntu/foliate. All now works as expected: any file on the NFS partitions, opened any way, open directly into the application. Similarly, navigation across the internal filesystems now works properly as well. Reversed the process - uninstalled using apt, reinstalled using snap install - and the problem comes straight back. I suspect snap filesystem sandboxing may simply prevent traversing to the ZFS partition, but... |
I have roughly the same symptoms (probably quite related) :
It is worth mentionning that in that exact same configuration, FBReader (for example) is fully able to open the files. Also if i copy the files back in local, i can open them with Foliate (as described by other users). |
Same, books on network shares don't open via dd-apt-repository ppa:apandada1/foliate repository however do via snap |
Here's what I'm getting when running through terminal:
I have foliate-2.6.4-1 installed on Manjaro Linux (based on Arch). It's not a snap or anything like that. Just an app installed on my system. Unfortunately, I cannot open any epub books, no matter where they are. And yes, this includes local files (in my home directory). |
Hello @bkosowski , I had the same issue and the suggestion here finally resolved the problem for me: #878 (comment) |
@mxschumacher good to know but this does NOT solve the "could not open file" issue when opening files from a samba share (i just tested it - deleted the mime cache folder - and it still fails in the same way than before). So maybe in the end there are very different issues with same kind of symptoms. |
The only what helped me . Try these first: |
i have installed both ubuntu 20 and windows10 on my laptop.
i have some some epub files stored on windows drive(NTFS) and i am able access all those files easily by mounting those drives.
I open those epub files on foliate, it says '' could not open file, empty response''
But if I copy those epub files on ubuntu drive, then they open easily.
The text was updated successfully, but these errors were encountered: