summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-05-23 16:04:43 +0200
committerBenBE <BenBE@geshi.org>2023-02-03 09:23:25 +0100
commit623ee31cfe3a39c87e6066c3044c7c38ce676e6b (patch)
treefa81ee2673e3cce64da7100bc246c8733d661cea /Settings.c
parent4d40680aa04370b06e9a2acd732f0be2ee6b6eba (diff)
Add option to shadow path prefixes
Shadow path prefixes which are used by distributions, like /usr/bin/ /usr/sbin/ /bin/ /sbin/ /usr/libexec/
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Settings.c b/Settings.c
index abf8e6f2..8543b9e4 100644
--- a/Settings.c
+++ b/Settings.c
@@ -393,6 +393,8 @@ static bool Settings_read(Settings* this, const char* fileName, unsigned int ini
this->highlightBaseName = atoi(option[1]);
} else if (String_eq(option[0], "highlight_deleted_exe")) {
this->highlightDeletedExe = atoi(option[1]);
+ } else if (String_eq(option[0], "shadow_distribution_path_prefix")) {
+ this->shadowDistPathPrefix = atoi(option[1]);
} else if (String_eq(option[0], "highlight_megabytes")) {
this->highlightMegabytes = atoi(option[1]);
} else if (String_eq(option[0], "highlight_threads")) {
@@ -587,6 +589,7 @@ int Settings_write(const Settings* this, bool onCrash) {
printSettingInteger("show_program_path", this->showProgramPath);
printSettingInteger("highlight_base_name", this->highlightBaseName);
printSettingInteger("highlight_deleted_exe", this->highlightDeletedExe);
+ printSettingInteger("shadow_distribution_path_prefix", this->shadowDistPathPrefix);
printSettingInteger("highlight_megabytes", this->highlightMegabytes);
printSettingInteger("highlight_threads", this->highlightThreads);
printSettingInteger("highlight_changes", this->highlightChanges);
@@ -678,6 +681,7 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns)
this->hideRunningInContainer = false;
this->highlightBaseName = false;
this->highlightDeletedExe = true;
+ this->shadowDistPathPrefix = false;
this->highlightMegabytes = true;
this->detailedCPUTime = false;
this->countCPUsFromOne = false;

© 2014-2024 Faster IT GmbH | imprint | privacy policy