Atm. files are saved in data/editor/maps directory. This will cause issues, because STK data is installed in read-only directory by default (/usr/share/ or "c:\Program Files" on windows). You need to have admin rights to write something there.
I think that better will be to save it in user home directory, "my documents" or something similar. Or just display dialog window and allow user to choose where to save it.
Atm. files are saved in
data/editor/maps
directory. This will cause issues, because STK data is installed in read-only directory by default (/usr/share/ or "c:\Program Files" on windows). You need to have admin rights to write something there.I think that better will be to save it in user home directory, "my documents" or something similar. Or just display dialog window and allow user to choose where to save it.