itchio / itch

🎮 The best way to play your itch.io games
https://itch.io/app
MIT License
2.38k stars 210 forks source link

RenPy can't save under sandbox on macOS #2223

Open porglezomp opened 5 years ago

porglezomp commented 5 years ago

I just lost a bit of time playing a RenPy game due to saving being broken under the sandbox. I assume this could probably also be fixed on the game's side, but thought I should report here.

To reproduce:

Extra information:

I get some sandboxd and kernel messages in Console.app that seem relevant:

SandboxViolation: DDLC(1863) deny(1) file-read-data /Users/c/Library/RenPy/DDLC-1454445547/persistent
SandboxViolation: DDLC(1863) deny(1) file-write-create /Users/c/Library/RenPy/DDLC-1454445547/text.txt
porglezomp commented 5 years ago

As a potential alternate way to fix this, it sounds like RenPy games have a command line argument --savedir, maybe itch could dynamically pass that if an app looks like a RenPy game, which would prevent having to open up the sandbox more.

On the other hand, then people looking for save files won't find it in the usual place if they search online, so generating a sandbox rule to permit that particular save file might be helpful…

fasterthanlime commented 5 years ago

That's a 10/10 diagnostic! This is exactly the cause.

I'm not sure whether I want to ship a RenPy-specific fix for that before we fully tackle cloud saves. In the meantime, I'm sorry you lost some save data :( The sandbox is still beta.