Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-08-2004, 07:58 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 26

Rep: Reputation: 15
AutoRun Program in XWindows

Is there a way to autorun a program once Xwindows starts?
Old 02-08-2004, 08:14 PM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
i don't think so, not in the global sense. i mean you can have programs autostart when logging into your account. like for KDE, just put a link inside ~/.kde/Autostart and in gnome there's Gnome's Foot button (like start button) > Programs > Settings > Sessions > Session Properties & Start up Programs.
Old 02-08-2004, 08:58 PM   #3
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Yes, there is. That's your XINITRC file.

It's usually located in ~/.xinitrc or /etc/X11/xinit/xinitrc.

This file contains your Window Manager executable name, and it can also include any other X program. Be sure to include an & after the previous program, such as:
startkde &
Old 02-09-2004, 06:49 AM   #4
LQ Newbie
Registered: Aug 2003
Posts: 26

Original Poster
Rep: Reputation: 15
Restart X Windows Program

If i have a program AutoStart once XWindows loads is there a way to have the program run again if it is killed?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO autorun a program on start up? kodaku Linux - Software 6 08-12-2004 09:40 PM
remotely using nedit (or any other xwindows program) allocate Linux - General 2 07-23-2004 05:55 PM
autorun application program on hotplug kevinatkins Linux - Software 0 02-08-2004 07:44 AM
Running a Java Program from XWindows kilobravo Linux - General 4 01-16-2003 02:36 PM
autorun a program in tty3 LynX Linux - Newbie 2 11-09-2002 04:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration