Ticket #1371 (closed enhancement: fixed)
Opened 2012-08-06T10:19:14-05:00
Last modified 2013-05-31T16:10:45-05:00
Detect when ImageJ.app/ is in C:\Program Files\ on Windows and the current account has no privileges to write there
Reported by: | dscho | Owned by: | dscho |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | Core | Version: | |
Severity: | serious | Keywords: | |
Cc: | accardi@…, peychl@… | Blocked By: | |
Blocking: | #1901 |
Description
Windows is a funny platform, with its ACLs it is not fitting into the security model of Java. Just testing new File("C:
Program Files
").canWrite() does not really give us the correct answer whether Windows will refuse to let us update files there.
So we need a way to detect that situation and warn the user (but only once, recording the date via Preferences) that we'll be unable to perform an update.