Find the answer to your Linux question:
Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 38
ha! so i was right, it was being stupid about not being logged into X Failing all else you could write a script that loads with rc.local and waits until ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487

    ha! so i was right, it was being stupid about not being logged into X

    Failing all else you could write a script that loads with rc.local and waits until after you login to X to start it (this is a hack, there are better ways, i just have never had an app i wanted starting when linux starts)
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  2. #22
    Just Joined!
    Join Date
    Aug 2002
    Posts
    26
    Dolda2000, thanx man, that worked, and to think it was tha easy and im trying to rewrite files and stuff, hahahaha

  3. #23
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    there has to be a way to do this generically - to start an app after you login to X? .xinitrc didn't do it like i thought it would - any other ideas?
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  4. #24
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    ok, i dont know why i am making this so hard - put it in the shell login

    .login
    .cshrc
    .bashrc

    whatever your shell uses...

    I really dont know why I didn't do this in the first place, i just spent the last 20 minutes reading up on .xsession or .xinitrc files...
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  5. #25
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Are those run when you log in to X?

  6. #26
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    yes, logging in reads the shell startup fiile, because the window manager is actually started by a shell script (this is i believe where it ist, i am going to take some time to lookup exactly how redhat starts X on bootup when i get a chance)
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  7. #27
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    But doesn't that mean, on the other hand, that those programs are started every time you start an xterm, too?

  8. #28
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    you know that is why i didn't tell him that the first time around

    i did that at work as a shortcut for some of our simulation machines, I also found out why .xsession wasn't working and it's a rather odd mistake, so in theory you could define a

    .xinitrc or .xsession file to do it

    also kde has a .kde/Autostart folder

    ( spent 25 minutes today figuring my files were wrong only to discover that the other system guy who works with us created new login because he didnt remember the passwords for our simulation accounts - so he was logged into the machines as controller4 while i was editing the files for ctrl4.... oops )
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  9. #29
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    If you have an .xsession file, doesn't that override anything else, ie. not start gnome-session (if you're using gnome). I think that's what I read in GNOME's session files last I read them, at least.

  10. #30
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    i believe so - but you could copy the system xsession file to your directory adn modify it (similar to copying named.conf.sample to named.conf)
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

Page 3 of 4 FirstFirst 1 2 3 4 LastLast

Posting Permissions

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