Find the answer to your Linux question:
Results 1 to 2 of 2
am looking for weeks to get my script running. Just to learn it, I made a test, want to run skype at startup. How does it work? I wrote a ...
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    1

    script init.d



    am looking for weeks to get my script running.

    Just to learn it, I made a test, want to run skype at startup.
    How does it work?

    I wrote a script 'example'

    Code:
    Code:
    Code:
    #!/bin/sh
    
    /usr/bin/skype

    Placed it in /etc/init.d
    did chmod +x example
    did update-rc.d example defaults

    I thought this would be enough?
    I test it by typing /etc/init.d/./example,and it works, skype runs.

    But it doesn't work when I restart my computer.

    Thank you in advance for helping me!

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Location
    Camp Pendleton
    Posts
    55
    Yeah, that's a gui program. It's not going to work from init because the X server won't have started. (And it's going to be run as root rather than your user.)

    You want to go ahead and setup your session to start skype when you log in. Assuming you're using gnome, that should be in System -> Preferences -> Sessions. Click the add button and fill in the information there...

Posting Permissions

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