LoginSignup
2
1

More than 5 years have passed since last update.

Genymotionの起動 on GUIが遅いからterminal上で直接起動してみた

Posted at

背景

Genymotion をいちいちアプリケーションフォルダからポチって、更に仮想端末をポチる手間を省きたくなったので、terminalから一発で立ち上げるためのワンライナーを書いてみました。

ワンライナー

[hogehoge@192] ~/workspace/mf_android
% VBoxManage list vms | grep -i 'SOMETHING_UNIQUE_FOR_TARGET_VD' | head -1 | perl -ple 's/^.*\{(.*)\}/$1/g;' | xargs /Applications/Genymotion.app/Contents/MacOS/player --vm-name

上記のSOMETHING_UNIQUE_FOR_TARGET_VDに、(Macアプリとしての)Genymotion内で表示されるvirtual devices名を指定してやればおkです。例えば、下記の状況でNexus 6を指定してやりたければ、Nexus6なりAPI 22なりNexus6.*API 22なり書けばおkです。

スクリーンショット 2015-08-12 0.37.19.png

2
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1