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

Adding Books via Nautilus or CLI inteface fails with Flatpak. #658

Closed
ghost opened this issue Jan 24, 2021 · 2 comments
Closed

Adding Books via Nautilus or CLI inteface fails with Flatpak. #658

ghost opened this issue Jan 24, 2021 · 2 comments
Labels
bug Something isn't working flatpak

Comments

@ghost
Copy link

ghost commented Jan 24, 2021

Foliate's flatpak appears to be broken when trying to drag and drop a file from Nautilus. Also --add from the command line fails in a similar fashion. Non-flatpak version of the application works when dragging and dropping books. This is on Fedora 33.

(com.github.johnfactotum.Foliate:2): Gjs-WARNING **: 22:27:07.695: JS ERROR: Gio.IOErrorEnum: Error when getting information for file “/home/rjk/Documents/Books/Harlan Ellison/The Beast That Shouted Love at the Heart of the World_ Stories (76)/The Beast That Shouted Love at the Heart o - Harlan Ellison.epub”: No such file or directory
getFileInfoAsync/</<@resource:///com/github/johnfactotum/Foliate/js/utils.js:890:30
main@resource:///com/github/johnfactotum/Foliate/js/main.js:474:24
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
@/app/bin/com.github.johnfactotum.Foliate:9:17

@johnfactotum
Copy link
Owner

Yeah, for Flatpak, it can't access the files directly because it's sandboxed. The portal for drag and drop seems be supported by GTK 4 but not GTK 3. See flatpak/xdg-desktop-portal#99.

@johnfactotum johnfactotum added bug Something isn't working flatpak labels Jan 25, 2021
@johnfactotum
Copy link
Owner

I don't think this is a bug. One should use the --file-forwarding option of the flatpak command.

As of v3.0, there's no --add option or drag and drop, but those are separate issues.

@johnfactotum johnfactotum closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flatpak
Projects
None yet
Development

No branches or pull requests

1 participant