diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-03-18 10:21:54 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2025-03-18 10:21:54 +0200 |
commit | 2b203df203745ef06c09c8700243f79dafd94175 (patch) | |
tree | 7b21b75af0cb412f0942d2a9c68d2a753996c175 /src | |
parent | 0437403c88e2de9aa1a6d2db66b15a59ae8c3a31 (diff) | |
download | firefox-dmenu-integration-master.tar.gz firefox-dmenu-integration-master.tar.bz2 firefox-dmenu-integration-master.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 3a34912..5bd9eb1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,17 +81,17 @@ fn main() -> Result<()> { } } } - for h in &hosts { + /*for h in &hosts { println!("{}", h); - } + }*/ let tmp_urls_path = PathBuf::from("/tmp/firefox-dmenu-urls.tmp"); let _ = fs::remove_file(&path); let dmenu_opts = hosts.into_iter().collect::<Vec<String>>().join("\n"); - println!( + /*println!( "cat {} | {}", tmp_urls_path.to_str().unwrap(), args.dmenu.to_str().unwrap() - ); + );*/ let _ = fs::write(&tmp_urls_path, &dmenu_opts); let source_command = Command::new("cat") .arg(&tmp_urls_path) @@ -116,8 +116,8 @@ fn main() -> Result<()> { .wait_with_output() .expect("[dmenu] Expected dmenu to successfully execute."); let dmenu_sel = String::from_utf8_lossy(&dmenu_out.stdout); - println!("Captured selection: {}", dmenu_sel); - println!("{}", dmenu_sel); + /*println!("Captured selection: {}", dmenu_sel); + println!("{}", dmenu_sel);*/ if dmenu_sel.to_string() == String::from("") { println!("dmenu did not produce any output."); return Ok(()); |