为用户应用程序创建菜单条目,Linux

发布于 2024-08-08 13:08:19 字数 260 浏览 4 评论 0原文

您好,我已经创建了一个 rpm 文件。我的应用程序完全是java应用程序。当我安装 rpm 时,我必须双击 Install.sh(它是一个启动 java 应用程序的 shell 脚本文件),我的程序就会启动。现在我希望当我安装 rpm 文件时,桌面上会出现一个图标。通过单击该图标,我的应用程序必须启动。

我是否必须在 .spec 文件中设置任何内容

为了实现这一目标,我必须做什么。

我正在使用 Fedora10

谢谢 苏尼尔·库马尔·萨胡

Hi I have created an rpm file. My application is completely java application. When I install my rpm I have to double click on Install.sh (its a shell script file which start java application) my program starts. Now I want when i will install my rpm file an icon will be seen in desktop. and by clicking on that icon my application must start.

Whether I have to set anything in my .spec file

What I have to do to achieve this.

I am using Fedora10

Thanks
Sunil Kumar Sahoo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你曾走过我的故事 2024-08-15 13:08:19

通常,RPM 文件会安装一个 foo.desktop 文件,该文件将在应用程序菜单中添加一个菜单条目。

Usually, RPM files install a foo.desktop file which will add a menu entry in the Applications menu.

平安喜乐 2024-08-15 13:08:19

您可以获取已知可以执行此操作的 rpm,将其解压缩并读取其规范文件
1所需的提示

这将提供重新评估所描述的行为Mangling


打开 rpm

  rpm2cpio httpd-2.0.52-32.ent.i386.rpm | cpio -idmv --no-absolute-filenames

2 的包装。
查看安装脚本

  rpm -qp --scripts --triggers httpd-2.0.52-32.ent.i386.rpm

另请检查 http://susefaq.sourceforge.net/articles/rpm.html

You can take a rpm that is known to do this, extract it and read it's spec file
This will provide the required hints regrading the described behavior

Mangling

1.
Unpack rpm

  rpm2cpio httpd-2.0.52-32.ent.i386.rpm | cpio -idmv --no-absolute-filenames

2.
View install scripts

  rpm -qp --scripts --triggers httpd-2.0.52-32.ent.i386.rpm

Also check http://susefaq.sourceforge.net/articles/rpm.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文