Report a useful directory if the application dir is ".".

This commit is contained in:
Michael Bayne
2006-03-29 06:20:00 +00:00
parent d604bde054
commit c0d399cc60
@@ -91,7 +91,11 @@ public class Getdown extends Thread
// determine whether or not we can write to our install directory
File instdir = _app.getLocalPath("");
if (!instdir.canWrite()) {
updateStatus(MessageUtil.tcompose("m.readonly_error", instdir));
String path = instdir.getPath();
if (path.equals(".")) {
path = System.getProperty("user.dir");
}
updateStatus(MessageUtil.tcompose("m.readonly_error", path));
_dead = true;
return;
}