Ticket #1371 (closed enhancement: fixed)

Opened 7 years ago

Last modified 6 years ago

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 7 years ago by dscho

  • Blocking 1454 added

comment:2 Changed 7 years ago by dscho

  • Blocking 1347 removed

comment:3 Changed 7 years ago by dscho

  • Blocking 1454 removed

comment:4 Changed 7 years ago by dscho

  • Blocking 1347 added

comment:5 Changed 7 years ago by bdezonia

  • Milestone set to imagej2-b8-analysis

comment:6 Changed 6 years ago by dscho

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

Fixed in 161882725c2255b4a80d2a4449ef836e17402ebc.

comment:7 Changed 6 years ago by bdezonia

  • Blocking 1901 added; 1347 removed

comment:8 Changed 6 years ago by bdezonia

  • Milestone changed from imagej2-b8-analysis to imagej2-b7-ndim-data
Note: See TracTickets for help on using tickets.