mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Update the default report logo
This commit is contained in:
parent
1e7580aca3
commit
02a0039ba5
@ -43,7 +43,7 @@ public final class ReportBranding implements ReportBrandingProviderI {
|
|||||||
private static final String AGENCY_LOGO_PATH_PROP = "AgencyLogoPath";
|
private static final String AGENCY_LOGO_PATH_PROP = "AgencyLogoPath";
|
||||||
private static final String REPORT_TITLE_PROP = "ReportTitle";
|
private static final String REPORT_TITLE_PROP = "ReportTitle";
|
||||||
//default settings
|
//default settings
|
||||||
private static final String DEFAULT_GENERATOR_LOGO = "/org/sleuthkit/autopsy/report/images/logo.png";
|
private static final String DEFAULT_GENERATOR_LOGO = "/org/sleuthkit/autopsy/report/images/default_generator_logo.png";
|
||||||
private static final String DEFAULT_REPORT_TITLE = "Autopsy Forensic Report";
|
private static final String DEFAULT_REPORT_TITLE = "Autopsy Forensic Report";
|
||||||
private String reportsBrandingDir; //dir with extracted reports branding resources
|
private String reportsBrandingDir; //dir with extracted reports branding resources
|
||||||
private static final String MODULE_NAME = ReportBranding.class.getSimpleName();
|
private static final String MODULE_NAME = ReportBranding.class.getSimpleName();
|
||||||
@ -77,7 +77,7 @@ public final class ReportBranding implements ReportBrandingProviderI {
|
|||||||
//use default
|
//use default
|
||||||
logger.log(Level.INFO, "Using default report branding for generator logo");
|
logger.log(Level.INFO, "Using default report branding for generator logo");
|
||||||
curPath = reportsBrandingDir + File.separator + "logo.png";
|
curPath = reportsBrandingDir + File.separator + "logo.png";
|
||||||
InputStream in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/logo.png");
|
InputStream in = getClass().getResourceAsStream(DEFAULT_GENERATOR_LOGO);
|
||||||
OutputStream output = new FileOutputStream(new File(curPath));
|
OutputStream output = new FileOutputStream(new File(curPath));
|
||||||
FileUtil.copy(in, output);
|
FileUtil.copy(in, output);
|
||||||
ModuleSettings.setConfigSetting(MODULE_NAME, GENERATOR_LOGO_PATH_PROP, curPath);
|
ModuleSettings.setConfigSetting(MODULE_NAME, GENERATOR_LOGO_PATH_PROP, curPath);
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
Loading…
x
Reference in New Issue
Block a user