如何将tar.gz安装的软件放在菜单栏上?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
visualnets
帖子: 11
注册时间: 2006-08-20 19:05
来自: Shenyang Liaoning
联系:

如何将tar.gz安装的软件放在菜单栏上?

#1

帖子 visualnets » 2007-03-11 7:48

我下载了一个Seamonkey1.1.1,用的是installer .tar.gz的包,用里面的安装界面安装的。它提示如下信息:
To hook up SeaMonkey complete with icon to the GNOME Panel, follow these steps:

1. Click the GNOME Main Menu button, open the Panel menu, and then open the Add to Panel submenu and choose Launcher.

2. Right-click the icon for SeaMonkey on the Panel and enter the following command:
directory_name./seamonkey

where directory_name is the name of the directory you downloaded SeaMonkey to. For example, the default directory that SeaMonkey suggests is /usr/local/seamonkey.

3. Type in a name for the icon, and type in a comment if you wish.

4. Click the icon button and type in the following as the icon's location:

directory_name/icons/mozicon50.xpm

where directory name is the directory where you installed SeaMonkey. For example, the default directory is /usr/local/seamonkey/icons/mozicon50.xpm.

我在系统->首先项->菜单布局,里新建项目,当让我输入命令时我反复输入都不好使。不知道怎么弄了,请高手帮我。我的Seamonkey安装在 /usr/local/seamonkey里了,我在root终端里的/usr/local/seamonkey文件下输入 ./seamonkey 就可以启动程序。

谢谢!
C1.7|HY 256M/DDR266+HY 128M/DDR266|MSI i845-C|ST 40G/5400|
BluePoint Linux 2|Mandrake 9.1|Fedora Core 1|RedFlag 4.0|FreeBSD 4|
能帮助您,是俺的荣兴,您的需要,我们的缘份!
头像
goldfox_79
帖子: 2004
注册时间: 2005-10-16 8:26
来自: 地球

#2

帖子 goldfox_79 » 2007-03-11 8:51

基本上所有能在Ubuntu菜单中显示的程序快捷方式都是以.desktop文件的形式存放在 /usr/share/applications 目录下的。你可以到这个目录下创建一个 seamonkey.desktop 文件,在这个文件中写入适当的内容,然后就可以Ubuntu菜单中看到SeaMonkey的快捷方式了。

1. 创建 seamonkey.desktop 文件
$sudo gedit /usr/share/applications/seamonkey.desktop

2. 在打开的文件中添加如下内容
[Desktop Entry]
Encoding=UTF-8
Name=SeaMonkey
Comment=All-in-one internet application suite
Exec= directory_name/seamonkey
Icon= directory_name/icons/mozicon50.xpm
Terminal=false
Type=Application
Categories=Application;Network;


其中directory_name是你安装seamonkey时的路径名。

3. 保存文件,关闭gedit。到Ubuntu菜单栏的“网络”一项里面查看有没有一个叫“SeaMonkey”的程序出现。
回复