Find the answer to your Linux question:
Results 1 to 10 of 10
Running Slack 10.0 and Windowmaker. Wassa best way to run a dockapp when windowmaker starts? What file should I add the command to? /etc/rc.d/rc.local can be used before X but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305

    Running scripts at x start


    Running Slack 10.0 and Windowmaker. Wassa best way to run a dockapp when windowmaker starts? What file should I add the command to?

    /etc/rc.d/rc.local can be used before X but what about when X starts?

    Ta.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Belgium
    Posts
    1,429
    Most DE's or WM's have an autostart folder, just do some googling . XFCE for example has ~/Desktop/Autostart/. You just have to put a symlink to the program there.
    ** Registered Linux User # 393717 and proud of it ** Check out www.zenwalk.org
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **

  3. #3
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Just for info, created a file called ~/.xprofile and added the scripts to there like

    wmCalCloc &

    Works fine.

    May be different if you're using a desktop manager, booting straight into command line here, then Windowmaker with startx.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2004
    Location
    Croatia, Zagreb
    Posts
    70
    The same goes for .xinitrc file. I guess .xprofile and .xinitrc pretty much do the same thing.

  6. #5
    Linux Enthusiast
    Join Date
    Jun 2005
    Posts
    668
    .xinitrc is for init 3 based startx

    .xprofile is for init 4 (slack) XDM login

  7. #6
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Hmm, tis not actually running at boot. Windowmaker must be saving the settings somewhere. I will try .xinitrc when I get a chance.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  8. #7
    Just Joined!
    Join Date
    Aug 2004
    Location
    Croatia, Zagreb
    Posts
    70
    Quote Originally Posted by kern
    .xinitrc is for init 3 based startx

    .xprofile is for init 4 (slack) XDM login
    I see, thanks for the clarification.

    Daniel

  9. #8
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Turn Around
    Posts
    202
    .xinitrc is runlevel 2 for debian also i guess?

    if a desktop manager isnt starting at boot your gonna have to check the startup scripts found in a subdirectory of the /etc/ (/etc/init.d for debian) folder and be sure its symlinked to the right directory for your runlevel.

    also be sure that you have a desktop manager installed .

  10. #9
    Linux Enthusiast
    Join Date
    Jun 2005
    Posts
    668
    you're talking about graphical init 5 (4 on slack) XDM login

    you do not symlink anything in slack, thats debian


    you edit the initdefault in /etc/inittab to 4 instead of 3

    thats it.

  11. #10
    Linux Enthusiast
    Join Date
    Jun 2005
    Posts
    668
    also , slackware doesnt use the System V init.d layout

    it uses the BSD init system

    you dont have specific directories for different runlevels, although there is a sysv init package which supports them if you want, the rc.S / rc.M scripts will also honour any home made rc.x/ dirs you make too.

    but I tend not to bother with them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •