Skip to content

Commit 1d84967

Browse files
committed
fix: use the Windows PHPStorm launcher name in open app targets
1 parent c1b4a01 commit 1d84967

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src-tauri/src/types.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,12 @@ fn default_workspace_groups() -> Vec<WorkspaceGroup> {
10011001
}
10021002

10031003
fn default_open_app_targets() -> Vec<OpenAppTarget> {
1004+
let phpstorm_command = if cfg!(target_os = "windows") {
1005+
"phpstorm64.exe"
1006+
} else {
1007+
"phpstorm"
1008+
};
1009+
10041010
if cfg!(target_os = "macos") {
10051011
return vec![
10061012
OpenAppTarget {
@@ -1048,7 +1054,7 @@ fn default_open_app_targets() -> Vec<OpenAppTarget> {
10481054
label: "PHPStorm".to_string(),
10491055
kind: "command".to_string(),
10501056
app_name: None,
1051-
command: Some("phpstorm".to_string()),
1057+
command: Some(phpstorm_command.to_string()),
10521058
args: Vec::new(),
10531059
},
10541060
OpenAppTarget {
@@ -1114,7 +1120,7 @@ fn default_open_app_targets() -> Vec<OpenAppTarget> {
11141120
label: "PHPStorm".to_string(),
11151121
kind: "command".to_string(),
11161122
app_name: None,
1117-
command: Some("phpstorm".to_string()),
1123+
command: Some(phpstorm_command.to_string()),
11181124
args: Vec::new(),
11191125
},
11201126
OpenAppTarget {

0 commit comments

Comments
 (0)