GP-1164: Reorganizing Ghidra's user settings/cache/temp directories to support XDG

This commit is contained in:
Ryan Kurtz 2023-12-19 08:22:40 -05:00
parent 8bfcb02166
commit 3c30ada14c
50 changed files with 919 additions and 222 deletions

View file

@ -25,6 +25,7 @@ import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.helpers.ParserAdapter;
import ghidra.framework.Application;
import ghidra.util.xml.XmlUtilities;
/**
@ -174,7 +175,7 @@ public class TOCConverter {
* @throws IOException
*/
private File createTempTOCFile() throws IOException {
File tempFile = File.createTempFile("toc", ".xml");
File tempFile = Application.createTempFile("toc", ".xml");
PrintWriter out = new PrintWriter(new FileOutputStream(tempFile));
BufferedReader reader = new BufferedReader(new FileReader(sourceFilename));