flathub / rocks.koreader.KOReader

https://flathub.org/apps/details/rocks.koreader.KOReader
1 stars 2 forks source link

RO filesystem limitations #32

Closed pazos closed 5 months ago

pazos commented 5 months ago

Mostly https://github.com/flathub/rocks.koreader.KOReader/blob/master/rocks.koreader.KOReader.yml#L16

/media/ and /run/media/ are probably ok as ro media.

Broken features with ro home:

pinging @proletarius101

proletarius101 commented 5 months ago

Major features like Wikipedia to epub, Wallabag or RSS feeds, among many others, that fetch content and produce files.

They are not saved to the application storage (XDG_DATA_DIRS)? It doesn't need any permission to store files there

proletarius101 commented 5 months ago

I guess the issue is that, when opening/saving a file, the xdg open dialog is not used? Otherwise the permission is granted automatically

proletarius101 commented 5 months ago

The best I can do is adding rw permission to some directories (e g. Downloads, Documents). It's too risky to grant a broad rw home permission...

pazos commented 5 months ago

Hi, thanks for your time :)

The best I can do is adding rw permission to some directories (e g. Downloads, Documents). It's too risky to grant a broad rw home permission...

Unfortunately that doesn't fix the issue. The app requires/expects full rw permissions.

Pretty much like syncthing

The warning the synching app is providing on the flathub page is, IMHO, easier to understand for the user than the warning of the current KO version.

It is a shame since the flatpak version would work fine otherwise. So if you're not willing to grant the permissions the app requires please change the metadata to state it is a very limited app (like, using the name KOReader (sandboxed))

But I would suggest to add proper support for the filesystem. It would be way better and KOReader would work as expected and intented, like in any other platform we currently support.

proletarius101 commented 5 months ago

Pretty much like syncthing

Given the precedence, that makes sense to me. Please don't hesitate to make a PR to add the --filesystem=host permission. But it's upon Flathub moderator's approval.

pazos commented 5 months ago

Given the precedence, that makes sense to me. Please don't hesitate to make a PR to add the --filesystem=host permission. But it's upon Flathub moderator's approval.

proletarius101 commented 5 months ago

To clarify, any modifications to permissions, even those initiated by me, will be subject to the scrutiny of a moderator prior to merging the PR.

pazos commented 5 months ago

Sorry, the body of my comment is missing :p

Given the precedence, that makes sense to me. Please don't hesitate to make a PR to add the --filesystem=host permission. But it's upon Flathub moderator's approval.

Great! Thank you very much :)

I see no problem with moderators doing their job :).

I'm going to open a couple separate tickets to keep track of other areas of improvement.

Thanks again!