flathub / org.qownnotes.QOwnNotes

https://flathub.org/apps/details/org.qownnotes.QOwnNotes
2 stars 6 forks source link

Sandbox: this application does not receive implicit persmissions #17

Open brenthuisman opened 3 years ago

brenthuisman commented 3 years ago

Currently, using Flathubs QOwnnotes is disallowing use of directories outside of the initially proposed one (~/notes). I suppose this is a consequence of it being sandboxed. However, file dialogs should be granting implicit access if a user navigates somewhere outside the sandbox. Currently, the open directory dialog just does nothing if a custom directory is being chosen, without feedback as to why. From my understanding, this is incorrect behavior (and quite limiting :) ).

A fix would be much appreciated!

andyhubbert941 commented 3 years ago

Hi @brenthuisman Could you let me know if this is still the case in recent versions? It should allow you to use any directory in the current users home directory

Thanks!

brenthuisman commented 3 years ago

When was this changed? Due to this issue, I couldn't use the flatpak so I've been used the one provided by my distro (bit older, but OK).

andyhubbert941 commented 3 years ago

I’m not sure as only just looked at the code myself. Maybe give the flatpak a try and see if it now meets your needs? If there’s still an issue then let me know and I’ll have a deep dive into flatpak documentation!!

You can install the flatpak alongside your current install by the way.

Would appreciate your feedback! As it seems to work fine for me so far!

brenthuisman commented 3 years ago

Installed it fresh from QOwnNotes. It still does not let me select any directory upon startup (the Open button does nothing). Strangely enough, creating ~/Notes manually and choosing that also does not make the Open button work. So maybe it is in fact another problem?

brenthuisman commented 3 years ago

Update: also post-initial-setup the notes-dir can't actually be altered (same issue: "Open" button after navigating to the desired dir does nothing).