summaryrefslogtreecommitdiffstats
path: root/src/options.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-10-01 01:46:09 -0400
committerGitHub <noreply@github.com>2020-10-01 01:46:09 -0400
commita5b95ae8b26c720892cfe2dfbe3b52a6f6eaf546 (patch)
tree73fb7740b099ab0b1ca656f6fe48abb7658f91e1 /src/options.rs
parent5b33e8d6b4b28c6a64e017bc137bd4897cf9cb74 (diff)
bug: use cmdline for Linux proc name if >=15 chars (#261)
This was the cause of some process names getting cut off and looking weird for Linux (and Linux only, I'm not directly responsible for the other OSes). This also adds spaces in between command line flags. Before, they were usually separated by either spaces (which looked fine) or null terminators (which meant it looked like something was broken).
Diffstat (limited to 'src/options.rs')
-rw-r--r--src/options.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.rs b/src/options.rs
index 0f85a611..27d722ae 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -20,7 +20,7 @@ pub mod layout_options;
use anyhow::{Context, Result};
-#[derive(Clone, Default, Deserialize, Serialize)]
+#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Config {
pub flags: Option<ConfigFlags>,
pub colors: Option<ConfigColours>,
@@ -154,7 +154,7 @@ impl WidgetIdEnabled {
}
}
-#[derive(Clone, Default, Deserialize, Serialize)]
+#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct ConfigColours {
pub table_header_color: Option<String>,
pub all_cpu_color: Option<String>,
@@ -176,7 +176,7 @@ pub struct ConfigColours {
pub battery_colors: Option<Vec<String>>,
}
-#[derive(Clone, Default, Deserialize, Serialize)]
+#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct IgnoreList {
pub is_list_ignored: bool,
pub list: Vec<String>,