mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge pull request #7680 from eugene7646/remove_CR_popup_8422
Remove CR popup (8422)
This commit is contained in:
commit
6d55c16c50
@ -30,11 +30,11 @@ import org.sleuthkit.autopsy.coreutils.Version;
|
|||||||
public class CentralRepositoryNotificationDialog {
|
public class CentralRepositoryNotificationDialog {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This dialog should display iff the mode is RELEASE and the
|
* This dialog should display if the mode is RELEASE and the application is
|
||||||
* application is running with a GUI.
|
* running with a GUI.
|
||||||
*/
|
*/
|
||||||
static boolean shouldDisplay() {
|
static boolean shouldDisplay() {
|
||||||
return Version.getBuildType() == Version.Type.RELEASE
|
return Version.getBuildType() == Version.Type.RELEASE
|
||||||
&& RuntimeProperties.runningWithGUI();
|
&& RuntimeProperties.runningWithGUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,7 +178,12 @@ public class Installer extends ModuleInstall {
|
|||||||
return; // Nothing to do
|
return; // Nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CentralRepositoryNotificationDialog.shouldDisplay()) {
|
|
||||||
|
// Some projects built on top of Autopsy platform set this environment
|
||||||
|
// variable to make sure there are no UI popups. This is necessary because
|
||||||
|
// Installer classes run before we have been able to determine
|
||||||
|
// whether we are running headless or not. See JIRA-8422.
|
||||||
|
if (System.getenv("AUTOPSY_HEADLESS") == null && CentralRepositoryNotificationDialog.shouldDisplay()) {
|
||||||
CentralRepositoryNotificationDialog.display();
|
CentralRepositoryNotificationDialog.display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Autopsy Forensic Browser
|
* Autopsy Forensic Browser
|
||||||
*
|
*
|
||||||
* Copyright 2013-2017 Basis Technology Corp.
|
* Copyright 2013-2022 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -49,7 +49,7 @@ public class RuntimeProperties {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets or unsets a flag indicating whether or not the application is running in a target system.
|
* Sets or unsets a flag indicating whether or not the application is running in a target system.
|
||||||
* The flag can only be set once per application innvocation
|
* The flag can only be set once per application invocation
|
||||||
*
|
*
|
||||||
* @param runningInTarget
|
* @param runningInTarget
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user