Thread: Add to Linux StartUp

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    61

    Add to Linux StartUp

    Hi,
    and another question :
    How can I add a program to Linux Startup? I want to run this program as an user logins and close it as logoff? Any script to do this?

    Thanks a lot and sorry to ask lot's of questions

  2. #2
    Registered User
    Join Date
    Jul 2009
    Posts
    61

    Exclamation

    Hi
    I should have tell this:
    I don't want to use a daemon, I need something that shows an splash at every login?!
    I wrote the splash in Qt and now just I have to add it to startup

  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    That's desktop environment specific. For GNOME, go to System -> Pref -> Startup Applications.

  4. #4
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    You could always edit the file /etc/profile

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    61
    Hi
    I found /opt/kde3/share/autostart/ in openSuse and KDE based,
    /etc/xdg/autostart/ & /usr/share/gnome/autostart/ in ubuntu
    and GNOME based linux !!!

    Now, I can write a program to do that, insread of using system > ...

    Is this the best way?!

  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Are you sure you want to add your program system-wide, instead of just for the user?

  7. #7
    Registered User
    Join Date
    Jul 2009
    Posts
    61
    Yes, I want to show every one for example a splash screen.

  8. #8
    Registered User
    Join Date
    Feb 2009
    Location
    China Guangzhou
    Posts
    7
    you can add the command in "/home/YOURUSER/.profile"

  9. #9
    Registered User
    Join Date
    Jul 2009
    Posts
    61
    Thanks, But users are LDAP domain users, so there is no profile

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  2. linux, doubles, and unions
    By paraglidersd in forum Linux Programming
    Replies: 14
    Last Post: 11-19-2008, 11:41 AM
  3. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  4. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 11:36 AM
  5. linux vs linux?
    By Dreamerv3 in forum Linux Programming
    Replies: 5
    Last Post: 01-22-2002, 09:39 AM

Tags for this Thread