Check whether we can write to our install directory before going any further
and report a useful error message in the event that we cannot.
This commit is contained in:
@@ -88,6 +88,14 @@ public class Getdown extends Thread
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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));
|
||||||
|
_dead = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_dead = false;
|
_dead = false;
|
||||||
if (detectProxy()) {
|
if (detectProxy()) {
|
||||||
|
|||||||
@@ -60,6 +60,10 @@ m.init_error = The application has failed to launch due to the following \
|
|||||||
error:\n{0}\n\nPlease visit\n{1} for \
|
error:\n{0}\n\nPlease visit\n{1} for \
|
||||||
information on how to handle such problems.
|
information on how to handle such problems.
|
||||||
|
|
||||||
|
m.readonly_error = The directory in which this application is installed:\n \n\
|
||||||
|
{0}\n \nis read-only. Please install the applicaton into a directory where \
|
||||||
|
you have write access.
|
||||||
|
|
||||||
m.missing_resource = The application has failed to launch due to a \
|
m.missing_resource = The application has failed to launch due to a \
|
||||||
missing resource:\n{0}\n\nPlease visit\n{1} for information on how to handle such problems.
|
missing resource:\n{0}\n\nPlease visit\n{1} for information on how to handle such problems.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user