love icon indicating copy to clipboard operation
love copied to clipboard

Love change saving directory without visible reasons

Open thisnickwasfree opened this issue 3 years ago • 3 comments

Sometimes it uses directory ~/.local/share/love/lovegame then suddenly switches to ~/.local/share/love/game Main directory's name is game.

thisnickwasfree avatar May 03 '21 05:05 thisnickwasfree

How do you run the game? If you don't explicitly set the game's identity via t.identity in conf.lua, then LÖVE will try to guess one based on the game path you give as an argument when launching LÖVE. If you run your game like love . then it probably won't be able to guess your game's folder from that.

slime73 avatar May 10 '21 23:05 slime73

via t.identity will try to guess

Guess this can be the reason, I'll check if the t.identity is correct.

thisnickwasfree avatar May 16 '21 08:05 thisnickwasfree

LÖVE will try to guess one based on the game path you give as an argument when launching LÖVE.

Maybe we can make LÖVE normalize the path (including converting from CWD-relative to absolute) before using it for this. I'll look into it for 12.0.

slime73 avatar Jan 13 '22 21:01 slime73