command para abrir o android studio

0

Eu recentemente instalei o easystroke no meu sistema Ubuntu 14.04 LTS. Eu quero adicionar um golpe de atalho para o mesmo. Vocês podem me dizer qual comando usar? localização do estúdio android é

/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh

para outros aplicativos como o firefox que eu uso

 wmctrl -a Firefox || firefox

mas isso não funciona para android studio

também

xdg-open of /home/.... 

abre o arquivo bash no editor de texto em vez do terminal ..

Pls me ajuda rapazes

    
por Chris Aby Antony 01.07.2015 / 11:06

2 respostas

0

Com este comando:

wmctrl -a "Android Studio" || "/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh"

Use o caminho completo com aspas duplas.

de man wmctrl

   -a <WIN>
          Switch to the desktop containing the window <WIN>, raise the window, and  give  it
          focus.


   <WIN>  This argument specifies a window that is the target of an action. By  default  the
          argument  is  treated  as  if were a string, and windows are examined until one is
          found with a title the contains the specified string as a substring. The substring
          matching  is done in a case insensitive manner. The -F option may be used to force
          exact, case sensitive title matching. The option -i may be used to  interpret  the
          window target as a numeric window identity instead of a string.
    
por A.B. 01.07.2015 / 11:37
0

Tente isto:

xdotool type "sh '/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh'" ; xdotool key KP_Enter

se não funcionar tente isto então:

wmctrl -a "Android Studio" || "/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh"
    
por Maythux 01.07.2015 / 11:14