1. 程式人生 > >Ubuntu 建立androidstudio快捷圖示到桌面

Ubuntu 建立androidstudio快捷圖示到桌面

轉載請註明出處:http://blog.csdn.net/feibendexiaoma/article/details/73739554
命令如下:

sudo gedit /usr/share/applications/Studio.desktop

因為ubuntu的快捷方式都在/usr/share/applications/路徑下建立

在開啟的檔案中新增以下配置

[Desktop Entry]
Name =AndroidStudio
Comment =android studio
Exec =/home/androidstudio/android-studio/bin/studio.sh
Icon =/home/androidstudio/android-studio/bin/studio.png
Terminal =false Type =Application

你只需修改Exec,Icon就可以了
Exec 指向要執行的指令碼路徑
Icon 指向程式的圖示路徑
每一行緊靠左側且後面不能有空格