Skip to content

Commit 4a42fda

Browse files
committed
fix: stuff
1 parent 43e73f2 commit 4a42fda

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/cross_platform/windows/app_finding.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ pub fn get_apps_from_registry(apps: &mut Vec<App>) {
5757
let exe_string = exe_string.split(',').next().unwrap();
5858

5959
// make sure it ends with .exe
60-
if !exe_string.ends_with(".exe") {
60+
if !exe_string.to_lowercase().ends_with(".exe"){
6161
return;
6262
}
6363

64+
let display_name = display_name.to_string_lossy();
6465
if !display_name.is_empty() {
6566
apps.push(App::new_executable(
66-
&display_name.clone().to_string_lossy(),
67-
&display_name.clone().to_string_lossy().to_lowercase(),
67+
&display_name,
68+
&display_name,
6869
"Application",
6970
exe_path,
7071
None,

0 commit comments

Comments
 (0)