about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-20 20:09:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-20 20:11:00 -0700
commit5d139f432743d1bc0e7833566961c9bd32b8b6c5 (patch)
treecb55e754577b7589c3c7c8de4267a07fc3bead49
parent7d9125b0b06fd127fb47c411d21ccb836c3bec25 (diff)
downloadlines.love-5d139f432743d1bc0e7833566961c9bd32b8b6c5.tar.gz
ensure Filename is writable when opened outside a terminal
Thanks Jimmy Miller for reporting this.
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 8c8bf71..3960094 100644
--- a/main.lua
+++ b/main.lua
@@ -57,7 +57,7 @@ Line_width = nil  -- maximum width available to either text or drawings, in pixe
 
 Zoom = 1.5
 
-Filename = 'lines.txt'
+Filename = love.filesystem.getUserDirectory()..'/lines.txt'
 
 function love.load(arg)
   -- maximize window