Skip to content

Commit 656a42d

Browse files
committed
fix(app): Capacitor not opening IDE when configured to do so (regression) #12368
1 parent 2437d97 commit 656a42d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/lib/helpers/open-ide.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function runMacOS (mode, target) {
3434
: appPaths.resolve.capacitor('android')
3535

3636
open(folder, {
37-
app: 'android studio',
37+
app: { name: 'android studio' },
3838
wait: false
3939
})
4040
}
@@ -46,6 +46,10 @@ function getLinuxPath (bin) {
4646
'/opt/android-studio/bin/studio.sh'
4747
]
4848

49+
if (process.env.ANDROID_STUDIO_PATH) {
50+
canonicalPaths.push(process.env.ANDROID_STUDIO_PATH)
51+
}
52+
4953
if (bin.linuxAndroidStudio) {
5054
canonicalPaths.unshift(bin.linuxAndroidStudio)
5155
}
@@ -66,7 +70,7 @@ function runLinux (mode, bin, target) {
6670
: appPaths.resolve.capacitor('android')
6771

6872
open(folder, {
69-
app: studioPath,
73+
app: { name: studioPath },
7074
wait: false
7175
})
7276

@@ -117,7 +121,7 @@ function runWindows (mode, bin, target) {
117121
: appPaths.resolve.capacitor('android')
118122

119123
open(folder, {
120-
app: `${studioPath}`,
124+
app: { name: studioPath },
121125
wait: false
122126
})
123127

0 commit comments

Comments
 (0)