LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2006, 10:12 PM   #1
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Starting a program whenever X starts


I need a specific program to start whenever X starts (It is using init 4 right now). I don't want it to start after a login, just when X starts (before a login), so putting a command in the ~/.foo isn't going to do it. It has to start AFTER X starts tho. (rc.m doesn't do it)

Any suggestions?

Last edited by cwwilson721; 04-02-2006 at 10:15 PM.
 
Old 04-02-2006, 10:17 PM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
I think that you should put it in the ~/.xinitrc file.
 
Old 04-02-2006, 10:20 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by Harishankar
I think that you should put it in the ~/.xinitrc file.
Thanks, but it will not will not work. The '~/.xinitrc is read/used AFTER a login. I need it to run BEFORE, so putting it in a user folder will not work. Maybe in /etc/X11/xinit/xinitrc.kde ?

Last edited by cwwilson721; 04-02-2006 at 10:22 PM.
 
Old 04-02-2006, 10:21 PM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
You mean you're usign xdm/gdm or kdm? Ok, didn't realize that.
 
Old 04-02-2006, 10:23 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by cwwilson721
I need a specific program to start whenever X starts (It is using init 4 right now).
Yes . KDM.
 
Old 04-02-2006, 10:26 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
/etc/X11/xinit/xinitrc.kde doesn't work, nor does /etc/X11/xinit/xinitrc (symlink to /etc/X11/xinit/xinitrc.kde)
There has to be somewhere after 'startkde' is called in xinitrc. Any ideas on where?
 
Old 04-02-2006, 10:50 PM   #7
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
So you can edit /otp/kde/bin/startkde.sh script.
 
Old 04-02-2006, 10:52 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
I'll give it a shot...

Thanks
 
  


Reply



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
How can I stop this program from starting up when KDE starts? M$ISBS Linux - Newbie 6 04-01-2006 04:18 PM
Program starts on wrong desktop johnmart Linux - Newbie 2 12-07-2004 10:44 AM
starting apps when fluxbox starts up imagreg Slackware 8 11-23-2004 10:47 PM
Starting xcompmgr right after x.org starts... UnixPhreak1911 Linux - Games 2 10-16-2004 01:36 PM
Problem starting Debian KDE 3.2 - Gnome starts rockee Linux - Newbie 1 03-19-2004 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:15 AM.

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