Debian启动没有桌面的Qt GUI应用程序 [英] Debian Start Qt GUI application with no desktop
问题描述
是的,您可以在没有窗口管理器的情况下执行此操作。 >
第一个:您需要启动到非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屋!