انجمنهای فارسی اوبونتو
کمک و پشتیبانی => انجمن عمومی => نویسنده: HKaveh در 21 خرداد 1392، 03:31 بظ
-
چگونه می توانم برای standard aptana (یا هر برنامه دانلود شده و قابل اجرای دیگر) در dash میانبر بسازم؟
-
یک راه اصولیش اینه که اونو بزاری تو یک فایل بعد اون فایل رو جزو PATH شلت قرار بدی.
http://askubuntu.com/questions/60218/how-to-add-a-directory-to-my-path
یک راه دیگش اینه که با دستور alias میانبر اجرای اون فایل رو بسازی مثلا
alias app="sh ~/myapp.sh"
-
از راه دوم موفق نشدم
فایل اجرایی من اینه:
/home/hesam/.apps/Aptana_Studio_3/AptanaStudio3
چی کنم؟
ls /home/hesam/.apps/Aptana_Studio_3
about_files artifacts.xml full_uninstall.txt plugins
about.html configuration icon.xpm readme
AptanaStudio3 dropins libcairo-swt.so version.txt
AptanaStudio3.ini epl-v10.html notice.html
AptanaStudio3.sh features p2
-
up
-
up
-
توی این فولدر یک فایل به ایم aptana.desktop بساز :
/usr/share/applications
و محتویاتش رو اینطور ادیت کن :
[Desktop Entry]
Name=Aptana
Exec=/path/to/binary/file
TryExec=/path/to/binary/file
Icon=/path/to/icon(s)
و بعد میتونی اون رو به dash اضافه کنی.
-
موقع اجرا ارور می ده
اشکال کار من کجاست؟
[Desktop Entry]
Name=Aptana
Exec=/home/hesam/.apps/aptana/AptanaStudio3
TryExec=/home/hesam/.apps/aptana/AptanaStudio3
Icon=/home/hesam/.apps/aptana/icon.xpm