歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 12.04下給xilinx ISE 12.04加了個launcher

Ubuntu 12.04下給xilinx ISE 12.04加了個launcher

日期:2017/2/28 15:51:26   编辑:Linux教程

Ubuntu 12.04 添加launcher的方法。

首先,安裝:

sudo apt-get install --no-install-recommends gnome-panel
然後,然後自己看吧。。。囧RZ

With the gnome-panel I was now able to create a launcher on the desktop using the command below.

gnome-desktop-item-edit ~/Desktop/ --create-newIn the create launcher dialog I filled it out as follows:

Type: Application
Name: PhpStorm
Command: /bin/bash /home/username/PhpStorm/PhpStorm-117.257/bin/phpstorm.sh
NOTE: You could use /bin/sh or whatever shell you use. I use bash so that is why I put /bin/bash.

To create a shortcut in the Unity Launcher I double clicked the new desktop launcher I created above. (NOTE: If you start PHPStorm by executing the phpstorm.sh you do not get any options at all when right clicking the icon in the Unity Launcher.) Then when PHPStorm was running I was then able to right click on the icon in the Unity Launcher and selected “Lock to Launcher”. Voila! Now I have phpstorm on the Unity Launcher.

用這種方法,給ISE和ModelSim加了launcher。先把PATH那些配置的東西寫個腳本,然後是程序的啟動指令,這些一起寫個腳本找地方放著。然後在桌面用上面方法創建個快捷方式。

另一個發現,我把生成的xxx.desktop文件給mv到~/.local/share/applications/下面,我就可以在dash裡找到我的剛mv進去的app了,再把它給拖到launcher裡,這樣就完美了。

好吧,可以專門為我的工具協議個launcher.sh,然後可以彈出個對話框,選擇程序。。。貌似扯遠了。。。據說有個ubuntu shell的,可以簡單做UI,也不是不可以試。。。

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved