From 069e1ab19a02ac13279920a45c986bbf33ebe474 Mon Sep 17 00:00:00 2001 From: mysticmomba Date: Fri, 9 Oct 2026 12:56:59 -0400 Subject: [PATCH 1/4] fix: Fixed Windows Desktop Notifications. Windows Only Allows Notifications From Registered Applications. Added a Function in the Standalone Binary To Register It in the Registry As if It Were Installed. --- src-tauri/src/commands/monitor.rs | 2 +- src-tauri/src/commands/traceroute.rs | 1 - src-tauri/src/lib.rs | 48 ++++++++++++++++++++++++++-- src/main.js | 2 +- 4 files changed, 47 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/commands/monitor.rs b/src-tauri/src/commands/monitor.rs index df0703f..a5faab4 100644 --- a/src-tauri/src/commands/monitor.rs +++ b/src-tauri/src/commands/monitor.rs @@ -200,4 +200,4 @@ pub fn is_monitor_running() -> bool { let state = get_monitor(); let guard = state.blocking_lock(); guard.running -} \ No newline at end of file +} diff --git a/src-tauri/src/commands/traceroute.rs b/src-tauri/src/commands/traceroute.rs index e08cf11..dd43d7f 100644 --- a/src-tauri/src/commands/traceroute.rs +++ b/src-tauri/src/commands/traceroute.rs @@ -60,4 +60,3 @@ pub async fn run_traceroute(app: AppHandle, ip: String) -> Result<(), String> { Ok(()) } - diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 828f0e4..e296478 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3,11 +3,52 @@ mod models; mod net; mod scanner; -use tauri::Manager; use tauri::menu::{Menu, MenuItem}; use tauri::tray::TrayIconBuilder; +use tauri::Manager; #[cfg_attr(mobile, tauri::mobile_entry_point)] +#[cfg(target_os = "windows")] +fn register_aumid() { + let app_id = "io.argus.app"; + let key_path = format!("HKCU\\Software\\Classes\\AppUserModelId\\{}", app_id); + + // Check if already registered + let check = std::process::Command::new("reg") + .args(["query", &key_path]) + .output(); + + if let Ok(o) = check { + if o.status.success() { + tracing::debug!("AUMID already registered"); + return; + } + } + + // Not registered, create it + let output = std::process::Command::new("reg") + .args([ + "add", + &key_path, + "/v", "DisplayName", + "/t", "REG_SZ", + "/d", "Argus", + "/f", + ]) + .output(); + + match output { + Ok(o) if o.status.success() => { + tracing::debug!("AUMID registered successfully"); + } + Ok(o) => { + tracing::warn!("AUMID registration failed: {}", String::from_utf8_lossy(&o.stderr)); + } + Err(e) => { + tracing::warn!("Failed to run reg command: {}", e); + } + } +} pub fn run() { tracing_subscriber::fmt() .with_env_filter( @@ -30,7 +71,8 @@ pub fn run() { let show = MenuItem::with_id(app, "show", "Show Argus", true, None::<&str>)?; let quit = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?; let menu = Menu::with_items(app, &[&show, &quit])?; - + #[cfg(target_os = "windows")] + register_aumid(); let _tray = TrayIconBuilder::new() .icon(app.default_window_icon().unwrap().clone()) .tooltip("Argus - Network Scanner") @@ -97,4 +139,4 @@ pub fn run() { ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); -} \ No newline at end of file +} diff --git a/src/main.js b/src/main.js index f4ef6d7..3c3c389 100644 --- a/src/main.js +++ b/src/main.js @@ -1109,7 +1109,7 @@ const monitorTab = (() => { var count = Object.keys(entries).length; notify('Argus Monitor Active', 'The monitor is still running with ' + count + ' hosts. Close the monitor to stop pinging.'); - }, 15 * 60 * 1000); + }, 15* 60 * 1000); } catch (err) { console.error('Monitor start error:', err); setRunning(false); -- 2.43.0 From f0736d4ecd8df898850dd1adb6064f5fe20dbb02 Mon Sep 17 00:00:00 2001 From: mysticmomba Date: Fri, 9 Oct 2026 12:57:39 -0400 Subject: [PATCH 2/4] Update Version Numbers --- CHANGELOG.md | 5 +++++ src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39b463a..09d9084 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [unreleased] + +### 🐛 Bug Fixes + +- Fixed Windows Desktop Notifications. Windows Only Allows Notifications From Registered Applications. Added a Function in the Standalone Binary To Register It in the Registry As if It Were Installed. ## [0.4.0] - 2026-10-09 ### 🚀 Features diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 8c01aec..06799e8 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -49,7 +49,7 @@ checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" [[package]] name = "argus" -version = "0.4.0" +version = "0.4.1" dependencies = [ "csv", "dns-lookup", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1d8bafb..e76b9b2 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "argus" -version = "0.4.0" +version = "0.4.1" description = "An All in One Network Utility" authors = ["James Brotosky Date: Fri, 9 Oct 2026 12:58:10 -0400 Subject: [PATCH 3/4] Updated changelog with version number --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09d9084..33de70e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## [unreleased] +## [0.4.1] - 2026-10-09 ### 🐛 Bug Fixes -- 2.43.0 From 87463bd8bc2531e44f3244235c2dde4b7c300d67 Mon Sep 17 00:00:00 2001 From: mysticmomba Date: Fri, 9 Oct 2026 12:58:57 -0400 Subject: [PATCH 4/4] Updated main.js --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 3c3c389..f4ef6d7 100644 --- a/src/main.js +++ b/src/main.js @@ -1109,7 +1109,7 @@ const monitorTab = (() => { var count = Object.keys(entries).length; notify('Argus Monitor Active', 'The monitor is still running with ' + count + ' hosts. Close the monitor to stop pinging.'); - }, 15* 60 * 1000); + }, 15 * 60 * 1000); } catch (err) { console.error('Monitor start error:', err); setRunning(false); -- 2.43.0