LinuxQuestions.org
Visit Jeremy's Blog.
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, 06: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, 07:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 08: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 12:19 PM
running my application automatically on starting the linux vimmi Programming 4 02-28-2007 04:19 PM
How many java Services will start while starting tomcat on mandrake linux naveenmadugula Linux - General 2 05-15-2005 11:52 PM
Why does Linux do a DNS lookup everytime I start an application? Bandhel Linux - Networking 2 02-23-2004 07:08 AM
start application openoffice through php on linux pradeepsamale Linux - Software 0 08-01-2003 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 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
Open Source Consulting | Domain Registration