diff options
| author | 2026-01-23 22:11:15 +0100 | |
|---|---|---|
| committer | 2026-01-29 02:52:34 +0100 | |
| commit | a17d94168440ce91703069fc6027dc766e0d8998 (patch) | |
| tree | 174a8c32863f3e60c3905ae9518cb32e33dd9751 /src-tauri | |
| parent | 410c949b87424b4ac0df5e3f38930781c6eda147 (diff) | |
| download | DropOut-a17d94168440ce91703069fc6027dc766e0d8998.tar.gz DropOut-a17d94168440ce91703069fc6027dc766e0d8998.zip | |
docs(java): add TODO comment for refactoring candidate detection
Reviewed-by: Claude-Sonnet-4.5
Diffstat (limited to 'src-tauri')
| -rw-r--r-- | src-tauri/src/core/java.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src-tauri/src/core/java.rs b/src-tauri/src/core/java.rs index 12a6d56..459ab15 100644 --- a/src-tauri/src/core/java.rs +++ b/src-tauri/src/core/java.rs @@ -663,6 +663,7 @@ pub fn detect_java_installations() -> Vec<JavaInstallation> { installations } +/// TODO: Refactor to use a more robust method /// Get list of candidate Java paths to check fn get_java_candidates() -> Vec<PathBuf> { let mut candidates = Vec::new(); @@ -671,6 +672,7 @@ fn get_java_candidates() -> Vec<PathBuf> { let mut cmd = Command::new(if cfg!(windows) { "where" } else { "which" }); cmd.arg("java"); #[cfg(target_os = "windows")] + // hide console window cmd.creation_flags(0x08000000); if let Ok(output) = cmd.output() { |