Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-02-2006, 10:12 PM
|
#1
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
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.
|
|
|
04-02-2006, 10:17 PM
|
#2
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
I think that you should put it in the ~/.xinitrc file.
|
|
|
04-02-2006, 10:20 PM
|
#3
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
04-02-2006, 10:21 PM
|
#4
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep: 
|
You mean you're usign xdm/gdm or kdm? Ok, didn't realize that.
|
|
|
04-02-2006, 10:23 PM
|
#5
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Quote:
Originally Posted by cwwilson721
I need a specific program to start whenever X starts (It is using init 4 right now).
|
Yes . KDM.
|
|
|
04-02-2006, 10:26 PM
|
#6
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
/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?
|
|
|
04-02-2006, 10:50 PM
|
#7
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
So you can edit /otp/kde/bin/startkde.sh script.
|
|
|
04-02-2006, 10:52 PM
|
#8
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
I'll give it a shot...
Thanks
|
|
|
All times are GMT -5. The time now is 04:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|