NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

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: imagej2-b7-ndim-data
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.

Change History

comment:1 Changed 2012-09-05T12:37:47-05:00 by dscho

  • Blocking 1454 added

comment:2 Changed 2012-09-05T12:38:00-05:00 by dscho

  • Blocking 1347 removed

comment:3 Changed 2012-09-05T12:39:51-05:00 by dscho

  • Blocking 1454 removed

comment:4 Changed 2012-09-05T12:40:00-05:00 by dscho

  • Blocking 1347 added

comment:5 Changed 2013-03-07T13:04:24-06:00 by bdezonia

  • Milestone set to imagej2-b8-analysis

comment:6 Changed 2013-05-30T10:17:33-05:00 by dscho

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 161882725c2255b4a80d2a4449ef836e17402ebc.

comment:7 Changed 2013-05-31T16:04:08-05:00 by bdezonia

  • Blocking 1901 added; 1347 removed

comment:8 Changed 2013-05-31T16:10:45-05:00 by bdezonia

  • Milestone changed from imagej2-b8-analysis to imagej2-b7-ndim-data