Package: renpy / 7.3.5+dfsg-1

translations-tmpdir.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Markus Koschany <apo@debian.org>
Date: Sat, 2 Dec 2017 21:24:38 +0100
Subject: translations tmpdir

Use a writable location for temporary files.

Forwarded: not-needed
---
 launcher/game/translations.rpy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/launcher/game/translations.rpy b/launcher/game/translations.rpy
index 93cd0a6..9b7deb0 100644
--- a/launcher/game/translations.rpy
+++ b/launcher/game/translations.rpy
@@ -50,10 +50,10 @@ init python:
             return strings_json
 
         try:
-            tempdir = os.path.join(config.basedir, "tmp")
+            tempdir = os.path.expanduser("~/.renpy/tmp")
 
             try:
-                os.makedirs(os.path.join(config.basedir, "tmp"))
+                os.makedirs(os.path.expanduser("~/.renpy/tmp"))
             except:
                 pass