summaryrefslogtreecommitdiffstats
path: root/src/bin
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/bin
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/bin')
-rw-r--r--src/bin/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
index 81ac2041..50881529 100644
--- a/src/bin/main.rs
+++ b/src/bin/main.rs
@@ -42,8 +42,10 @@ fn main() -> Result<()> {
let config_path = read_config(matches.value_of("config_location"))
.context("Unable to access the given config file location.")?;
+ trace!("Config path: {:?}", config_path);
let mut config: Config = create_or_get_config(&config_path)
.context("Unable to properly parse or create the config file.")?;
+ trace!("Current config: {:#?}", config);
// Get widget layout separately
let (widget_layout, default_widget_id, default_widget_type_option) =
@@ -75,13 +77,17 @@ fn main() -> Result<()> {
// Cleaning loop
{
let cleaning_sender = sender.clone();
+ trace!("Initializing cleaning thread...");
thread::spawn(move || loop {
thread::sleep(Duration::from_millis(
constants::STALE_MAX_MILLISECONDS + 5000,
));
+ trace!("Sending cleaning signal...");
if cleaning_sender.send(BottomEvent::Clean).is_err() {
+ trace!("Failed to send cleaning signal. Halting cleaning thread loop.");
break;
}
+ trace!("Cleaning signal sent without errors.");
});
}