LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to put any program in startup in fedora 16. (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-put-any-program-in-startup-in-fedora-16-a-4175420795/)

jayeshsharma52 08-07-2012 05:14 AM

how to put any program in startup in fedora 16.
 
can anyone help me to put any program in startup in fedora 16.
Thanx.

John VV 08-07-2012 05:35 AM

you will need to provide a lot more information that that
if kde then put a link in
~/.kde4/Autostart/
IF AND ONLY IF
if needs to be ran when the user logs in

add a script in /etc/profile.d
if you are using that type of boot
if and only if the program can be ran during boot

themanwhowas 08-07-2012 06:34 AM

If it's a service that you want to start you can use chkconfig. For example, if you want httpd to run at startup: 'chkconfig httpd on'

jayeshsharma52 08-07-2012 07:30 AM

i just want to put Dictionary in startup.and its fedora 16 gnome

John VV 08-07-2012 01:25 PM

a "Dictionary" ???????
a text editor will auto use one IF you have installed one
gedit will auto use it's Dictionary
Firefox also will auto use it's Dictionary
OpenOffice too will use it's Dictionary
but once YOU start the program that CAN use one

there is no need or use for a running Dictionary
BEFORE there is a text editor running to use it


what exactly is it you want to do ?

jayeshsharma52 08-07-2012 01:39 PM

Actually i had made a basic app in java which has a side function which stores the total time after logged in ,and as its a desktop app i thought it would be easy if i put it in startup and then store the time after booting. (so i ask for "dictionary" assuming you will not go on the term literally).

John VV 08-07-2012 04:26 PM

for a java app
on a per user use

but a launcher in
~/.config/autostart

a normal .desktop file will do it

or
a udev rule for after jvm starts
fedora has changed HOW it starts programs at boot
so
see the fedora wiki and docs


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