Skip to content

Instantly share code, notes, and snippets.

@mxmader
Created April 7, 2017 17:48
Show Gist options
  • Save mxmader/57e77b02e404580c2f9f4f98f1ad626d to your computer and use it in GitHub Desktop.
Save mxmader/57e77b02e404580c2f9f4f98f1ad626d to your computer and use it in GitHub Desktop.
android studio for linux start script (fedora)
#!/bin/bash
# This script assumes you've installed the Oracle JDK on a Fedora system.
# Copy the script into the bin/ directory of your Android Studio installation base directory.
studio_script="`dirname $0`/studio.sh"
JAVA_HOME=/usr/java/latest
# In the event you want to use the OpenJDK distribution on Fedora, uncomment the below
#JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk.x86_64
echo "Setting JAVA_HOME"
export JAVA_HOME
echo "Launching Android Studio"
$studio_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment