- edited description
There should be a default "estimate" database folder when running locally
I am running on x86_64 GNU/Linux
When I ran the app, the local database directory was empty. So i did fill it with a path to a folder on my desk: "~/Desktop/estimate"
I ended up with a folder "~" on my desktop and in it Desktop/estimate...
And one time when i left it empty the directory I ended up with my desktop filled with files from the database. I had the *.jar on the desktop.
If there was provided a default database path i think it wouldn't happen.
By the way, i suggest the "remember" tick enabled by default...
Comments (4)
-
reporter -
repo owner I am suprised that Java doesn't support ~ in paths. For my own reference the fix is on stackoverflow[1].
I think it would be better if the local login button was disabled whenever the field input is empty so an empty path would not be possible. Sorry about making a mess of your desktop.
[1] http://stackoverflow.com/questions/7163364/how-to-handle-in-file-paths
-
reporter No problem.
I suggest the default path should be something like "estimate/" but i don't know if there should or shouldn't be slashes.
-
repo owner - changed status to resolved
I have pushed a change to put a default of value of ./EstiMateDB in the local database field.
I have also added an "Absolute Path" field which will show exactly on the file system where database will be created. It is not editable, it just works out the absolute path from the relative one.
Support has also been added for ~ characters. If this is found on the front of the path if will be replaced with System.getProperty("user.home").
- Log in to comment