Ubuntu 图形用户界面应用程序 [英] Ubuntu GUI Application

查看:122
本文介绍了Ubuntu 图形用户界面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个可以在 ubuntu 桌面上运行的应用程序,我想要一个场景,当操作系统启动时,它会启动我的应用程序及其所需的服务,但主 ubuntu 桌面没有显示,所以它似乎只是我的应用程序正在设备上运行,我需要关于如何实现这一点的帮助链接、文章、命令等,任何可以为我指明正确方向的东西.

I am trying to create an application that would run on ubuntu desktops,I want a scenario where when the OS boots up ,it starts my application and its required services but the main ubuntu desktop does not show so it would seem only my application is running on the device,I need help on how this can be achieved links,articles,commands etc,anything that can point me in the right direction.

推荐答案

你在说什么真的很难理解,但是...

It is really hard to understand what you are saying but...

您必须区分运行级别启动和用户会话启动之间的主要区别.您没有提供任何信息,您使用的是哪种应用程序.

You must distinguish major difference between runlevel startup and user session startup. You did not provide any information what kind of application you have.

  • deamon application should be launched by upstart script
  • user session application should be launched by .desktop entry

如果你想启动你的应用程序而不是常规会话,你可以劫持 X 会话启动管道.在/etc/X11/Xsession.d 有shell"脚本.最后一个 99- 调用 exec.您必须提供自己的(假设为 98-)脚本并在 99- 之前进行 exec 调用.脚本按词法顺序启动.

If you want to launch your application instead of regular session you can hijack X session launching pipeline. At /etc/X11/Xsession.d there are 'shell' scripts. Last one 99- calls exec. You have to provide your own (let's say 98-) script and make exec call before 99-. Scripts are launched in lexical order.

这篇关于Ubuntu 图形用户界面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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