LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2016, 05:37 PM   #1
bremenpl
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Rep: Reputation: Disabled
Question Run GUI application in console mode


Hello there,
I have a question regarding running a gui application on linux. I am using Qt to develop an app with graphical user interface. It works when lightdm (I am using XFCE) is on. When I switch to console mode with ctrl + alt + F1 I am not able to run the gui app anymore. I was wondering, is it possible to somehow be able to run a specified gui app even though the system graphical interface is off? I am asking this because I need to prepare a PC where only one gui app is needed.
In the past I remember there was a QT build for embedded devices. It was able to run without graphical system because it had its own frame buffer.
I would appreciate all help!
 
Old 10-20-2016, 08:00 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Qt can run direct to frame buffer. You need to configure your system to provide the frame buffer, it is not a default capability. Secondly you need to configure Qt and build the tools, as well as properly configure the project you are making to run on the frame buffer. I've never been successful at getting that to work. I've explored that possibility online as well as directly with Nokia (former owners of Qt) support

What I do is I run the XServer with no display manager.

I can try to help you with some of that, if that is the direction you wish to go.
 
Old 10-20-2016, 08:02 AM   #3
bremenpl
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Yes I think that would work just fine. I dont mind having the GUI tools installed, I just need the user not to see them and run QT app in full screen.
 
Old 10-20-2016, 09:44 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by bremenpl View Post
Yes I think that would work just fine. I dont mind having the GUI tools installed, I just need the user not to see them and run QT app in full screen.
I'm trying to find my notes from when I did this last on a beagleboard, they're not "one size fits all" however they at least give some good pointers to the process. Please bear with me, they obviously didn't just jump out from my repository of notes, so sort of frustrating.
 
Old 10-20-2016, 11:12 AM   #5
bremenpl
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
No problem, I appreciate all you help. I remember that I also run qt embedded with own framebuffer on breaglebone black. It was a pain to compile and configure... Also the Embedded version was 4.X so its quite old now. I dont know if Qt still supports this qt embedded version. Something simmilar would really work out for me.
 
  


Reply

Tags
console, gui, qt



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing console C++ application through it's GUI icon kadleth Linux - Newbie 8 12-12-2014 01:54 PM
Increase The Font Size when We switch from GUI mode to Console mode. subramani Linux - Desktop 4 09-20-2011 12:57 PM
Wine can run only console application. vadimkovalev Linux - Newbie 1 09-29-2005 11:57 AM
how to run an executable in console mode linus johann Linux - Newbie 9 01-31-2005 01:18 PM
Switch to console mode from GUI in RH8? Unknown_User Linux - Software 7 04-25-2003 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration