android - How to pass VmOptions to AndroidStudio via command line arguments? -


quick version:

i want pass studio.vmoptions arguments while executing studio.sh directly on command line, instead of actual vmoptions file.

is possible? how?

for example, ./studio.sh -dhidpi=true.

use case:

latest version of android studio adds support hidpi screens windows , linux. adding -dhidpi=false or -dhidpi=true studio.vmoptions file activate/deactivate feature.

my problem work on 24" fullhd screen (-dhidpi=false) , other times directly on laptop 11" fullhd screen (-dhidpi=true).

i quick/easy able launch android studio true or false without having edit vmoptions every.single.time. believe type of cmd line argument best, i'm open suggestions doesn't involve creating custom script modify vmoptions before launching it.

unfortunately not yet possible. provide 2 different files. documentation says can export environment variable studio_vm_options - vmoptions file use -. wrap studio.sh, in script, , place in /usr/local/bin. script accept parameter indicates file use. instance path of file itself, , export studio_vm_options before executing studio.sh.

#!/bin/sh export studio_vm_options=$1 studio.sh 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -