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

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

问题描述

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

解决方案

是的,您可以在没有窗口管理器的情况下执行此操作。 >

第一个:您需要启动到非X会话,init级别为1或3。



第二个:您需要启动X服务器,只需调用X或xinit即可进入基本模式。



/ strong>:启动您的应用程序您可能需要更多地控制应用程序在屏幕上的位置及其代码中的尺寸,因为您将无法使用窗口管理器来帮助您。



另一种:您可以启动更基本的窗口管理器,了解它们如何与系统一起播放。 Motif窗口管理器(mwm)和Tab窗口管理器(twm)



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


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.

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

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.

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)

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天全站免登陆