Skip to content

Commit 7370505

Browse files
android-studio: use binary to launch IDE
1 parent f02405a commit 7370505

File tree

1 file changed

+3
-2
lines changed
  • pkgs/applications/editors/android-studio

1 file changed

+3
-2
lines changed

pkgs/applications/editors/android-studio/common.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ let
100100

101101
installPhase = ''
102102
cp -r . $out
103-
wrapProgram $out/bin/studio.sh \
103+
wrapProgram $out/bin/studio \
104104
--set-default JAVA_HOME "$out/jbr" \
105105
--set ANDROID_EMULATOR_USE_SYSTEM_LIBS 1 \
106106
--set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
@@ -204,6 +204,7 @@ let
204204
]
205205
}"
206206
'';
207+
meta.mainProgram = "studio";
207208
};
208209

209210
desktopItem = makeDesktopItem {
@@ -279,7 +280,7 @@ let
279280
unset ANDROID_HOME
280281
fi
281282
''}
282-
exec ${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh "$@"
283+
exec ${fhsEnv}/bin/${drvName}-fhs-env ${lib.getExe androidStudio} "$@"
283284
'';
284285
preferLocalBuild = true;
285286
allowSubstitutes = false;

0 commit comments

Comments
 (0)