From 52ad984bc08e3bd83e1dfec54091f74e10cbd7e2 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Wed, 22 Mar 2017 16:34:52 -0400 Subject: [PATCH] Restore disabling of main frame GUI in auto ingest node mode --- .../experimental/autoingest/AutoIngestManager.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/AutoIngestManager.java b/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/AutoIngestManager.java index 07254c247c..7e2c34131d 100644 --- a/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/AutoIngestManager.java +++ b/Experimental/src/org/sleuthkit/autopsy/experimental/autoingest/AutoIngestManager.java @@ -200,6 +200,12 @@ public final class AutoIngestManager extends Observable implements PropertyChang casesToManifests = new HashMap<>(); pendingJobs = new ArrayList<>(); completedJobs = new ArrayList<>(); + try { + RuntimeProperties.setRunningWithGUI(false); + SYS_LOGGER.log(Level.INFO, "Set running with desktop GUI runtime property to false"); + } catch (RuntimeProperties.RuntimePropertiesException ex) { + SYS_LOGGER.log(Level.SEVERE, "Failed to set running with desktop GUI runtime property to false", ex); + } } /** @@ -229,13 +235,6 @@ public final class AutoIngestManager extends Observable implements PropertyChang jobProcessingTaskFuture = jobProcessingExecutor.submit(jobProcessingTask); jobStatusPublishingExecutor.scheduleAtFixedRate(new PeriodicJobStatusEventTask(), JOB_STATUS_EVENT_INTERVAL_SECONDS, JOB_STATUS_EVENT_INTERVAL_SECONDS, TimeUnit.SECONDS); eventPublisher.addSubscriber(EVENT_LIST, instance); - try { - RuntimeProperties.setRunningWithGUI(false); - SYS_LOGGER.log(Level.INFO, "Set running with desktop GUI runtime property to false"); - } catch (RuntimeProperties.RuntimePropertiesException ex) { - SYS_LOGGER.log(Level.SEVERE, "Failed to set running with desktop GUI runtime property to false", ex); - throw new AutoIngestManagerStartupException("Failed to set running with desktop GUI runtime property to false", ex); - } state = State.RUNNING; errorState = ErrorState.NONE; }