LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-09-2007, 04:15 PM   #1
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Rep: Reputation: 30
where to put "global X startup" scripts?


first, how I start X:
I do NOT use xwmconfig to set the wm. what I use is triggers pointing to each xinit.file, eg, when I type 'kde' on bash, I'm triggering xinitrc.kde; same thing for gnome, fluxbox, etc. it's allows me to choose which wm to start independently where 'startx' points to.

now, the problem:
I have couple of apps running on X startup: xbindkeys and xscreensaver. By now, I trigger such apps 'individually' in all of the wm I use: in 'startup' directory for those wm who have such function, or within the xinitrc file on those wm that do not have it.
the point is: when I want add a new wm (I like to play with'em) I have to 'add' the startup proggys. or, when want to disable, eg screensaver, I have to do so in every single wm.

what I'm looking for is a location where add such commands *just once*, so they become 'global' to all wm's, regardless which wm I'm using in a certain moment.

thanks in advance
 
Old 03-09-2007, 09:07 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
You *may* be looking at etc/rc.4

Just a guess, but it's the last thing run before starting the desktop manager, and it runs every time when going to init 4.
 
Old 03-09-2007, 09:49 PM   #3
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Original Poster
Rep: Reputation: 30
thanks 4 answering.
sorry to say it doesn't work. guess I do not even trigger such script when going X. I start every session in text-mode(telinit3?), then I choose which wm to start -as described above. so I think I'm not using rc.4 script.. of course I can be completely wrong, but anyway: commands within such file are not triggered when opening a wm.
:-(
any idea is welcome
 
Old 03-09-2007, 10:05 PM   #4
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 31
Don't use the boot scripts, you'll want to use .xinitrc. Create a single script somewhere in your $PATH that you use for "global" stuff and call it toward the end of each .xinitrc. This way if you want to change your "global" stuff you don't have to go around all the .xinitrcs again but just modify the script each one calls. If .xinitrc doesn't exist just make it in the home directory and put what you want in there but if you've been playing around with blackbox or fluxbox it's most likely there.
 
Old 03-09-2007, 10:44 PM   #5
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
maybe you could softlink all startup scripts to a command standard startup script and then change that ?
 
Old 03-10-2007, 11:42 AM   #6
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
If you're using init 3 as your graphical run-level, check rc.3 then, or create rc.3 and put in it whatever you wanr to happen when going to init 3.
To be sure, check etc/inittab to see what is executed, if anything, when going to init 3.
 
Old 03-10-2007, 04:15 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,390

Rep: Reputation: Disabled
Try adding your ´global´ program commands to the file /etc/xprofile. This file does not exist by default so you´ll have to create it.

Eric
 
  


Reply


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
How to put scripts in the startup..? balavignesh Linux - Software 1 08-28-2006 11:43 AM
KDevelop: "Global" auto-completion? szr Linux - Software 1 03-08-2004 12:29 AM
Why do scripts like "./install" and "./configure" not work for me? engineerwell Linux - Newbie 2 02-05-2004 08:09 AM
gnome global settings "Help Me!!" or "URGENT" Fascistchicken Linux - Software 3 01-26-2004 07:27 PM
Module usage :Global symbol "$ref" requires explicit package name rajatgarg Programming 2 12-17-2003 02:55 AM


All times are GMT -5. The time now is 03:48 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration