Linux desktop auto start or launch programs

by Vivek Gite on November 29, 2006 · 3 comments

So how do you automatically start or launch program when you login into your KDE desktop system? For example if you would like to start program called xawtv (to watch tv) and mozilla-thunderbird mail client program.

This tip explains how to run programs to launch when you login into KDE or Gnome desktop systems.

KDE

If you are using KDE under any Linux distribution drop/copy program file to ~/.kde/Autostart directory. If your user name is tom create a soft link or copy binary in /home/tom/.kde/Autostart directory. Please note that the symbol ~ indicate the users home directory.

First change directory to ~/.kde/Autostart
$ cd ~/.kde/Autostart

Now create a symbolic link for xawtv program:
Type the following command to make a link (soft) to xawtv program:
$ ln -s $(which xawtv) .
Now create a link (soft) for mozilla-thunderbird mail client:
$ ln -s $(which mozilla-thunderbird) .

General syntax to create softlink to autostart program under KDE is as follows:
ln -s $(which linux-command-name) .

GNOME

Under GNOME Desktop system:
Open control center > Sessions > Startup Programs.

Now add your programs. Another option is to add programs in ~/.gnome2/session-manual file.

Finally you can also add program names to ~/.xinitrc file. This is useful for lightweight Window Manger such as Fluxbox or X session started by startx.
Open .xinitrc file:
$ vi ~/.xinitrc
Append program name:
/usr/bin/xawtv &

Save and close file.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

{ 3 comments… read them below or add one }

1 Vadim P. March 23, 2009

Is there no cross-DE way to have this done?

Reply

2 Vadim P. March 23, 2009
3 Kamlesh p. September 26, 2011

How can auto start linux sever??

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 15 + 2 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: