LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2012, 07:45 AM   #1
Pluvius
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Rep: Reputation: Disabled
Starting a Qt application on Linux start-up


Hello everyone,

I have a Qt application and I want it to (well, my boss wants it to) start automatically when the computer is turned on in a kiosk setup manner so that the user doesn't have full access to the Desktop Environment.

On a terminal, I can start my application with qt embedded with no X window system running (of course). (ie: ./application -qws)

I've found a somewhat similar thread here , where this issue is solved from within the inittab.
I'd really appreciate some help or pointers here

Thank you in advance.
 
Old 08-27-2012, 08:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
mkdir -p ~/.config/autostart/
.. and add a <Desktop entry> ( AppName.desktop ),
or a link to the executable in ~.config/autostart/


There is also a GUI application in the Menu
for adding applications that should autostart:
e.g. System > Preferencies > Startup Applications.

.
 
Old 08-27-2012, 09:12 AM   #3
Pluvius
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks a lot for your quick reply! The solution you've presented sounds cool but I hope it's DE independent, isn't it?
In fact, the linux system that will start the application has the strict minimum (no graphical output (kde,gnome,fluxbox) aside from the framebuffer).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to start application when linux(ubuntu/debian) start ersek Linux - General 4 05-28-2009 01:19 PM
running my application automatically on starting the linux vimmi Programming 4 02-28-2007 05:19 PM
How many java Services will start while starting tomcat on mandrake linux naveenmadugula Linux - General 2 05-16-2005 12:52 AM
Why does Linux do a DNS lookup everytime I start an application? Bandhel Linux - Networking 2 02-23-2004 08:08 AM
start application openoffice through php on linux pradeepsamale Linux - Software 0 08-01-2003 07:28 AM


All times are GMT -5. The time now is 08:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration