summarylogtreecommitdiffstats
path: root/screenshot_to_homedir.patch
diff options
context:
space:
mode:
authorJose Riha2021-10-16 23:12:23 +0200
committerJose Riha2021-10-16 23:12:23 +0200
commit10d9bf2824cd995eae4f37fd5bb31346a6f5a4e1 (patch)
treeb2fa3dd885b4166595090b69ffa0bbd7026ff187 /screenshot_to_homedir.patch
downloadaur-funnyboat.tar.gz
Initial commit
Diffstat (limited to 'screenshot_to_homedir.patch')
-rw-r--r--screenshot_to_homedir.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/screenshot_to_homedir.patch b/screenshot_to_homedir.patch
new file mode 100644
index 00000000000..cd6a12b69cc
--- /dev/null
+++ b/screenshot_to_homedir.patch
@@ -0,0 +1,17 @@
+diff --color -aur src.orig/funnyboat/game.py src/funnyboat/game.py
+--- src.orig/funnyboat/game.py 2021-10-16 23:01:03.166957782 +0200
++++ src/funnyboat/game.py 2021-10-16 23:07:37.429335490 +0200
+@@ -245,10 +245,10 @@
+
+ def take_screenshot(self):
+ i = 1
+- filename = "sshot.tga"
++ filename = os.path.join(os.path.expanduser("~"), "sshot.tga")
+ while os.path.exists(filename):
+ i += 1
+- filename = "sshot" + str(i) + ".tga"
++ filename = os.path.join(os.path.expanduser("~"), "sshot%s.tga" % i)
+
+ pygame.image.save(self.screen, filename)
+ print "Screenshot saved as " + filename
+Only in src: screenshot_to_homedir.patch