flathub / io.typora.Typora

https://flathub.org/apps/details/io.typora.Typora
3 stars 5 forks source link

Is it time to limit filesystem-access? #42

Open Arxcis opened 1 year ago

Arxcis commented 1 year ago

Hello! I am an avid user of Typora. I didn´t find any issues discussing this topic so far, so I am creating one :)

Screenshot from Typoras Flathub 2023-10-04

Scenarios

Today:

"--filesystem=host"

Tomorrow

Limit access to only home-directory by default. Best practice for apps without portal-support.

 "--filesystem=home"

Ideally

Use portals for opening files. No access by default.

Requires Typora to be built on top of an updated SDK with portal-support.

What needs to happen?

Maybe there is some limitation in Typora, which requires --filesystem=host ? Maybe someone can shed some light on the challenges facing this particular app?

syco commented 1 year ago

I like the Ideally solution, but I'm not familiar with it and tbh I don't use typora anymore. I know why Tomorrow wouldn't work for me. I used typora to access files in /mnt/driveabc

If you can send a pull request I'll be happy to test it and merge it.

Thanks