gpodder / gpodder-sailfish

gPodder 4 for Sailfish OS Packaging
https://openrepos.net/content/keeperofthekeys/gpodder
49 stars 29 forks source link

OPML export fails/complicated due to SailJail #209

Open RaphaelWimmer opened 6 days ago

RaphaelWimmer commented 6 days ago

Current Sailfish OS versions enforce sailjail/firejail rules. When one tries to export the list of podcasts into an OPML file, gpodder asks for a filename (i.e. does not present a folder selection screen). The file is then saved into the user's home directory with a ".opml" extension. However, the exported file never reaches the actual home directory but stays in the sailjail/firejail container and is lost when gpodder is closed. As far as I understand the issue, gpodder would either

Workaround: enter Documents/export.opml in the file name field when exporting the podcasts.

Alternative workaround (tried this first before looking into permissions; adjust the path to only get the .opml file you want):

PID=$(firejail --list | grep gpodder | cut -d: -f 1 )
firejail --cat=$PID /home/*/*.opml > /tmp/podcasts.opml
Keeper-of-the-Keys commented 6 days ago

Interesting, I guess because I have it installed over many versions I have more permissions grandfathered in, adding a Sailjail profile has been on my list of things I want to get to for a while, just didn't have priority since things seemed to be working regardless.

Can you explain a bit more why you think b is preferable to a?