команда для вводной студии андроида

Я недавно установил easystroke в своей системе LTS Ubuntu 14.04. Я хочу добавить штрих ярлыка для того же. Можете Вы парни говорить мне что команду использовать? местоположение студии андроида

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

для других приложений как Firefox я использую

 wmctrl -a Firefox || firefox

но это не работает на студию андроида

также

xdg-open of /home/.... 

открывает файл удара в текстовом редакторе вместо терминала..

Помогите мне парни

0
задан 1 July 2015 в 12:53

2 ответа

С этой командой:

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

Использование полный путь с двойными кавычками.

<час>

от 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.
0
ответ дан 4 October 2019 в 01:41

Попробуйте это:

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

, если не работают, пробуют это тогда:

wmctrl -a "Android Studio" || "/home/antony/Documents/Android Studio Installation Files/android-studio/bin/studio.sh"
0
ответ дан 4 October 2019 в 01:41

Другие вопросы по тегам:

Похожие вопросы: