ubuntu/fedora:如何在菜单中添加应用程序? [英] ubuntu/fedora: how do I add applications in the menus?

查看:78
本文介绍了ubuntu/fedora:如何在菜单中添加应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要在Ubuntu或Fedora中添加应用程序,哪些文件以及在filsystem层次结构中需要删除哪些文件?

What files and where do I need to drop those in the filsystem hierarchy in order to add an application to Ubuntu or Fedora?

我正在创建一个.deb软件包,我希望它出现在其他"菜单中.我该如何实现?

I am creating a .deb package and I would like it to appear in the "Other" menu. How do I achieve this?

推荐答案

Freedesktop.org(提供了GNOME和KDE符合的一些标准)说,快捷方式应该出现在.desktop文件中.您可以使用系统的程序包管理器来查找现有程序包将其.desktop文件放在何处.例如,在Fedora上:

Freedesktop.org (which provides some standards that GNOME and KDE conform to) says that shortcuts should appear in .desktop files. You can find out where an existing package puts its .desktop file(s) by using your system's package manager. For example, on Fedora:

$ rpm -ql transmission | grep desktop\$
/usr/share/applications/transmission.desktop

http://www.freedesktop.org/wiki/Howto_desktop_files 是一个教程,应该可以帮助您入门.

http://www.freedesktop.org/wiki/Howto_desktop_files is a tutorial that should help you get started.

这篇关于ubuntu/fedora:如何在菜单中添加应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆