Skip to content

Commit

Permalink
fix #1629: delete temp files created double click on UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Apr 13, 2023
1 parent 54f9006 commit a1f8c15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iped-app/src/main/java/iped/app/ui/ExternalFileOpen.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public void run() {
LOGGER.info("Externally Opening file " + item.getPath()); //$NON-NLS-1$
File file = Util.getFileRenamedToExt(item.getTempFile(), item.getType());
file.setReadOnly();
if (IOUtil.isTemporaryFile(file)) {
file.deleteOnExit();
}
open(file);
}

Expand Down

0 comments on commit a1f8c15

Please sign in to comment.