![comando para abrir Android Studio](https://rvso.com/image/1127623/comando%20para%20abrir%20Android%20Studio.png)
Recientemente instalé easystroke en mi sistema Ubuntu 14.04 LTS. Quiero agregar un trazo de acceso directo para lo mismo. ¿Pueden decirme qué comando usar? La ubicación del estudio Android es.
/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh
Para otras aplicaciones como Firefox que uso.
wmctrl -a Firefox || firefox
pero esto no funciona para Android Studio
también
xdg-open of /home/....
abre el archivo bash en el editor de texto en lugar de en la terminal.
Por favor ayúdenme chicos
Respuesta1
Con este comando:
wmctrl -a "Android Studio" || "/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh"
Utilice la ruta completa con comillas dobles.
deman 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.
Respuesta2
Prueba esto:
xdotool type "sh '/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh'" ; xdotool key KP_Enter
Si no funciona prueba esto entonces:
wmctrl -a "Android Studio" || "/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh"