Debian 在没有桌面的情况下启动 Qt GUI 应用程序 [英] Debian Start Qt GUI application with no desktop

查看:137
本文介绍了Debian 在没有桌面的情况下启动 Qt GUI 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 Debian 2.6 在我计划在嵌入式设置中使用的 SBC 上运行.我需要做的是配置它,以便 linux 启动并运行我的 Qt GUI 应用程序.我是否需要一个窗口管理器来执行此操作,或者我可以使用 X11 来执行此操作.也因为它将用于嵌入式系统,我不想加载任何桌面管理器.任何有关如何做到这一点的信息都会很棒!

I have Debian 2.6 running on a SBC that I plan on using in an embedded setup. What I need to do is configure it so that linux will start up and run just my Qt GUI application. Do I need a window manager to do this or can I just do it with X11. Also because it is going to be for an embedded system I do not want to load any desktop manager. Any info on how this can be done would be great!

推荐答案

是的,你可以在没有窗口管理器的情况下做到这一点.

Yes you can do this without a window manager.

首先:您需要启动到非 X 会话,初始化级别 1 或 3.

first: You need to boot into a non X session, init level 1 or 3.

second:您需要启动 X 服务器,在基本模式下只需调用 X 或 xinit.

second: You need to start the X server, in a basic mode by just calling X or xinit.

第三:启动您的应用.您可能需要对应用在屏幕上的位置及其在代码中的尺寸进行更多控制,因为您将没有窗口管理器来帮助您.

third: Start your app. You may need to take a little more control over where your app is positioned on the screen and its dimensions in your code, as you will not have a window manager to help with this.

或者:您可以启动一个更基本的窗口管理器来查看它们如何与您的系统配合使用.主题窗口管理器 (mwm) 和选项卡窗口管理器 (twm)

alternatively: you can launch one of the more basic window managers to see how they play with your system. Motif Window Manager (mwm) and Tab Window Manager (twm)

注意:在没有窗口管理器的情况下工作时,您可能会进入无法执行一些非常基本的操作的状态(例如:关闭窗口、移动窗口、调整窗口大小).您可能会发现,如果没有至少一些更基本的窗口管理功能,您将无法生存.直到你关闭这个循环,记住,Ctrl + Alt + Backspace 会杀死 XServer.

Note: While working without a window manager, you may get into a state where you cannot do some very basic operations (ex: close a window, move a window, resize a window). You may find that you cannot survive without at least some of the more basic window management functions. Until you close the loop on this, remember, Ctrl + Alt + Backspace will kill the XServer.

这篇关于Debian 在没有桌面的情况下启动 Qt GUI 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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