What's the best way to set program to start on boot?

I know there’s a bunch of ways to start a program on boot, but I’m wondering if there’s pluses/minuses to the ways and what they are.

My req’s:

  1. I want it to be started as the user I log in as (NOT root)

  2. I want it started after I log out of session and relogin

On 2011-06-29 21:36, 6tr6tr wrote:
>
> I know there’s a bunch of ways to start a program on boot, but I’m
> wondering if there’s pluses/minuses to the ways and what they are.
>
> My req’s:
>
> 1. I want it to be started as the user I log in as (NOT root)
>
> 2. I want it started after I log out of session and relogin

Neither are “on boot”. To run something on boot means by the start up
scripts, long way you are allowed to log in.

Wrong subject line.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Looks like you want to create a ~/.profile and put the commands you need
into it.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia
ION | 3GB Ram

On 06/29/2011 09:36 PM, 6tr6tr wrote:
>
> 1. I want it to be started as the user I log in as (NOT root)

if you are logging into KDE as a user, then just put a short script in
/home/[yourID]/.kde4/[some_file_name ]

like, here is a script in my /home which paints and on screen popup to
remind me to do a few things:


#!/bin/sh
# say something to DenverD at startup
# this script is /home/denverd/.kde/Autostart/GoodMorning

kdialog --warningyesno "- Check updates
- Fetch daily news
- Be happy"  --title "Did you?"

but, so maybe wanna start up firefox pointed to your favorite news
site…if so, this is more than you must have:


#!/bin/sh
#this script is /home/[yourID]/.kde/Autostart/start_ffox_cnn
nohup firefox http://cnn.com & 2> /dev/null; exit;

> 2. I want it started after I log out of session and relogin

the above will start firefox looking at cnn every time you log in as
[yourID] and runing as you…

so, those meet your requirements…but, pluses/minuses i can’t answer
(mostly because i have zero idea what your priorities and wants
are…for me there are no minuses, only pluses)


DD
-Caveat-Hardware-Software-

[QUOTE=DenverD;2359700]On 06/29/2011 09:36 PM, 6tr6tr wrote:
>
> 1. I want it to be started as the user I log in as (NOT root)

if you are logging into KDE as a user, then just put a short script in
/home/[yourID]/.kde4/[some_file_name ]

There is a /home/.kde4/autostart folder. I have a feeling this answer may be too simple…but I dragged the SpiderOak icon from the Kickoff Application Launcher into the autostart folder and now I don’t have to start SpiderOak manually when I log in.