Skip to content

Commit

Permalink
use a custom tmp buffer prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
torakiki committed Oct 19, 2020
1 parent 20990b7 commit dbc1710
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pdfsam-gui/src/main/java/org/pdfsam/PdfsamApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
import org.pdfsam.ui.workspace.SaveWorkspaceEvent;
import org.pdfsam.update.UpdateCheckRequest;
import org.sejda.core.Sejda;
import org.sejda.core.support.io.IOUtils;
import org.sejda.impl.sambox.component.PDDocumentHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -113,6 +114,7 @@ public void init() {
startLogAppender();
System.setProperty(PDDocumentHandler.SAMBOX_USE_ASYNC_WRITER, Boolean.TRUE.toString());
System.setProperty(Sejda.UNETHICAL_READ_PROPERTY_NAME, Boolean.TRUE.toString());
System.setProperty(IOUtils.TMP_BUFFER_PREFIX_PROPERTY_NAME, "pdfsam");
LOG.info("Starting PDFsam");
clean = rawParameters.contains("--clean") || rawParameters.contains("-clean") || rawParameters.contains("-c");
cleanUserContextIfNeeded(userContext);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
<logback.version>1.2.3</logback.version>
<jdepend.version>2.9.1</jdepend.version>
<hibernate-validator.version>4.2.0.Final</hibernate-validator.version>
<sejda.version>4.1.0</sejda.version>
<sejda.version>4.1.1</sejda.version>
<sejda.commons.version>1.1.4</sejda.commons.version>
<eventstudio.version>2.0.0</eventstudio.version>
<injector.version>2.0.0</injector.version>
Expand Down

0 comments on commit dbc1710

Please sign in to comment.