Skip to content

Commit 742857c

Browse files
committed
fix: use the Linux PHPStorm launcher in open app defaults
1 parent d372eed commit 742857c

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src-tauri/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,8 @@ fn default_workspace_groups() -> Vec<WorkspaceGroup> {
10031003
fn default_open_app_targets() -> Vec<OpenAppTarget> {
10041004
let phpstorm_command = if cfg!(target_os = "windows") {
10051005
"phpstorm64.exe"
1006+
} else if cfg!(target_os = "linux") {
1007+
"phpstorm.sh"
10061008
} else {
10071009
"phpstorm"
10081010
};

src/features/app/constants.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import {
77

88
export const OPEN_APP_STORAGE_KEY = "open-workspace-app";
99
export const DEFAULT_OPEN_APP_ID = isWindowsPlatform() ? "finder" : "vscode";
10-
const PHPSTORM_COMMAND = isWindowsPlatform() ? "phpstorm64.exe" : "phpstorm";
10+
const PHPSTORM_COMMAND = isWindowsPlatform()
11+
? "phpstorm64.exe"
12+
: isMacPlatform()
13+
? "phpstorm"
14+
: "phpstorm.sh";
1115

1216
export type OpenAppId = string;
1317

0 commit comments

Comments
 (0)