Results 1 to 5 of 5

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

  1. #1

    Default 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

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

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

    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)

  3. #3
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

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

    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

  4. #4
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

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

    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:

    Code:
    #!/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:

    Code:
    #!/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-

  5. #5
    Join Date
    Jun 2009
    Location
    Queensland
    Posts
    45

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

    [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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •