Skip to content

Commit

Permalink
fix(app): Capacitor not opening IDE when configured to do so (regress…
Browse files Browse the repository at this point in the history
…ion) #12368
  • Loading branch information
rstoenescu committed Feb 10, 2022
1 parent 2437d97 commit 656a42d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/lib/helpers/open-ide.js
Expand Up @@ -34,7 +34,7 @@ function runMacOS (mode, target) {
: appPaths.resolve.capacitor('android')

open(folder, {
app: 'android studio',
app: { name: 'android studio' },
wait: false
})
}
Expand All @@ -46,6 +46,10 @@ function getLinuxPath (bin) {
'/opt/android-studio/bin/studio.sh'
]

if (process.env.ANDROID_STUDIO_PATH) {
canonicalPaths.push(process.env.ANDROID_STUDIO_PATH)
}

if (bin.linuxAndroidStudio) {
canonicalPaths.unshift(bin.linuxAndroidStudio)
}
Expand All @@ -66,7 +70,7 @@ function runLinux (mode, bin, target) {
: appPaths.resolve.capacitor('android')

open(folder, {
app: studioPath,
app: { name: studioPath },
wait: false
})

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

open(folder, {
app: `${studioPath}`,
app: { name: studioPath },
wait: false
})

Expand Down

0 comments on commit 656a42d

Please sign in to comment.