Create a desktop application with LÖVE : how to export files in a chose location ?
Posted: Sat Jun 13, 2020 2:41 pm
Hi fellow löve users !
I have the project to create a desktop application and since I’m in love with Lua and Love and in the contrary confused with oriented object programming and other framework, I have in mind to actually create it using Lua and Love2D. I know this is kind of stupid since it’s not what Love2D is made for, but unless I discover a simple framework to create desktop/web application with the same philosophy as Love2D, I think it’s not such a bad idea.
So, the application itself will be an application to generate content (mainly textual) and allow the user to edit it, and like any other application of this kind, save it somewhere on his computer as a file that he can later load and edit etc.
Only problem is : the file you create and save using Love2D/Lua usually goes to a hidden directory on the computer. I know where this directory is, but the users won’t, so I was wondering if there is any solution to actually save the file somewhere else on the computer ? I know it work this way for obvious security reasons, but I wondered if that could be avoided ?
Also, do you think using Love2D to create a desktop application is actually a very bad idea ? If so, do you have a framework to create desktop/web application that uses a language similar to Lua ? By that, I mean functional programming and not oriented object programming ?
Thanks for the answers
I have the project to create a desktop application and since I’m in love with Lua and Love and in the contrary confused with oriented object programming and other framework, I have in mind to actually create it using Lua and Love2D. I know this is kind of stupid since it’s not what Love2D is made for, but unless I discover a simple framework to create desktop/web application with the same philosophy as Love2D, I think it’s not such a bad idea.
So, the application itself will be an application to generate content (mainly textual) and allow the user to edit it, and like any other application of this kind, save it somewhere on his computer as a file that he can later load and edit etc.
Only problem is : the file you create and save using Love2D/Lua usually goes to a hidden directory on the computer. I know where this directory is, but the users won’t, so I was wondering if there is any solution to actually save the file somewhere else on the computer ? I know it work this way for obvious security reasons, but I wondered if that could be avoided ?
Also, do you think using Love2D to create a desktop application is actually a very bad idea ? If so, do you have a framework to create desktop/web application that uses a language similar to Lua ? By that, I mean functional programming and not oriented object programming ?
Thanks for the answers