From b36e152050e92e02cfbebb724a27f5ebdaa34788 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Tue, 12 Mar 2024 10:09:57 -0400 Subject: [PATCH] Print all environment variables when starting fitnesstrax --- fitnesstrax/app/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fitnesstrax/app/src/main.rs b/fitnesstrax/app/src/main.rs index c2f135e..dfa8a89 100644 --- a/fitnesstrax/app/src/main.rs +++ b/fitnesstrax/app/src/main.rs @@ -58,7 +58,9 @@ fn setup_app_close_action(app: &adw::Application) { } fn main() { - println!("XDG_DATA_DIRS: {}", std::env::var("XDG_DATA_DIRS").unwrap_or("".to_owned())); + for (name, value) in std::env::vars() { + println!("{}: {}", name, value); + } // I still don't fully understand gio resources. resources_register_include! is convenient // because I don't have to deal with filesystem locations at runtime. However, I think other