Run Qt widget app on linux with no GUI
-
but the point is I dont know how to turn the app on in console mode in any OS
As said earlier boot to default tty where X is running, launch the app in fullscreen mode through startup scripts.
Or you can try the linuxfb mode so that you own the framebuffer but then you get no window manager functionalities for eg. alt-tab switch or window decorations -
So in short words, there is no way in linux to hide the whole OS GUI but still be able to run selected apps with GUI?
Yes there is. The most easiest is to use the minimal OS so customizations becomes easy. Donot install anything else but a bare minimal window manager so that the user gets a feel that only your application is running on top.
-
Hi,
Depending on your needs, wayland and the QtWayland module might also be an option.
Another possible option might be KDE's kiosk mode.
-
If you mean that you want to boot to command line, then start the graphical Qt app but not be able to use other graphical applications and don't want a desktop environment (which you probably mean by "GUI") with desktop, panel, application launcher, etc., but still accept the X (maybe X.org) server running, then yes, it's possible. See "man startx" (ftp://www.x.org/pub/X11R7.5/doc/man/man1/startx.1.html). As you can see in the given .xinitrc example, you can write there what you want to start when X is fired up. Basically you put only your application name and the wanted command line arguments there. Then, on the command line, give the command 'startx'.
You have to accept that when your application opens a dialog or other window it looks ugly, can't be moved or resized etc. You can of course try to implement a minimal in-application window manager or at least take care that window sizes and placements are good enough and maybe draw a nice border around it. OR you can add a minimal window manager to .xinitrc file, as in the example.
-
@Bremenpl
Hi, other option is to create a custom session
so you can have single app and also be able to start a desktop if needed.Most likely you will want to run a windows manager also.
http://askubuntu.com/questions/23932/how-do-i-replace-the-desktop-by-an-application
Im not sure if @Eeli-K solution is the same in debian version. :)