Find the answer to your Linux question:
Results 1 to 7 of 7
Slack 10, Dropline installed and GDM as the login manager. For reference Heartsmagic posted a similar prob here http://www.linuxforums.org/forum/top...hlight=xinitrc Anyway, I want to run a script when I login to ...
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 login


    Slack 10, Dropline installed and GDM as the login manager.

    For reference Heartsmagic posted a similar prob here

    http://www.linuxforums.org/forum/top...hlight=xinitrc

    Anyway, I want to run a script when I login to the window manager (fluxbox).

    ~/.xinitrc, ~./xsession aren't run when logging in via GDM. If I drop the runlevel to 3 and startx then both files seem to be accessed. But I need to use GDM to login to fluxbox for me whilst leaving all other accounts untouched. Hence the need to run a local statup script.

    Any ideas?

    I fmore info is needed then please ask.

    EDIT : will add more info, just need to reboot for a second.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  2. #2
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    All sorted, just made me own .xprofile and popped the script in there.

    Strange that.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  3. #3
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    chris: you should post, thanking yourself for the quick response

  4. #4
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    Good idea!

    Chris, thanks for your quick response. The level of help on these forums is awesome.

    </post count junkie>
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  5. #5
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Quote Originally Posted by Chris H
    All sorted, just made me own .xprofile and popped the script in there.

    Strange that.
    What's the .xprofile look like? Is it just a call to the script?
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  6. #6
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Farnborough, UK
    Posts
    1,305
    All I have in mine is the process I want to run

    bubblemon &

    Hav just discovered that .xprofile is run whatever wm or desktop is selected from GDM. So Dropline gets a nifty little bubblemon activity meter on login

    Still, tis all working.
    Lansbury's Lido

    thekiadriver on #linuxforums - fleetingly

  7. #7
    Linux Newbie
    Join Date
    Mar 2003
    Location
    Istanbul/Türkiye
    Posts
    246
    I've solved my problem. I made a mistake before.
    Just add the
    xmms &
    part to the .xprofile file and now everything is OK.
    Thx for help Chris H


    As i wrote that post after some research in the deeper side of Slackware i found that .xinitrc file is not used. instead of that file .xporfile is used. So Chris H we have already have a solution. I think you missed that. By the way i thoght that you knew the .xprofile file but i think most people dont know this.
    Just a Newbie....Looking 4 Info....

Posting Permissions

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