Results 1 to 10 of 10

Thread: I need help creating a launcher that involves a command line . . .

  1. #1
    Join Date
    Jan 2008
    Location
    Goshen In
    Beans
    98
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Question I need help creating a launcher that involves a command line . . .

    I want to create a launcher that opens a terminal and executes this command

    Code:
    LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
    ( I have to oped skype this way in order for my cam and mike to work)

    Thanks ahead of time.

  2. #2
    Join Date
    Jan 2008
    Location
    the space between spaces.
    Beans
    1,654

    Re: I need help creating a launcher that involves a command line . . .

    In the command field:
    Code:
    gnome-terminal -x 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype'
    "If a cluttered desk signs a cluttered mind, Of what, then, is an empty desk a sign?" -Albert Einstein.

  3. #3
    Join Date
    Jan 2008
    Location
    Goshen In
    Beans
    98
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: I need help creating a launcher that involves a command line . . .

    Quote Originally Posted by damis648 View Post
    In the command field:
    Code:
    gnome-terminal -x 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype'
    I tried it and I got this message


    There was an error creating the child process for this terminal

  4. #4
    Join Date
    Apr 2008
    Location
    /home/ibutho
    Beans
    1,365

    Re: I need help creating a launcher that involves a command line . . .

    Create a script e.g. runskype and put the commands below
    Code:
    #!/bin/bash
    LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
    skype
    Make the script executable (e.g. chmod +x runskype). You can then run skype by doing ./runskype from the directory containing the script or put the script somewhere in your path e.g. /usr/local/bin and you can then just enter "runskype" in a terminal. You can even make a menu or desktop entry for runskype if you wish.

  5. #5
    Join Date
    Jan 2008
    Location
    Goshen In
    Beans
    98
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: I need help creating a launcher that involves a command line . . .

    Quote Originally Posted by ibutho View Post
    Create a script e.g. runskype and put the commands below
    Code:
    #!/bin/bash
    LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
    skype
    Make the script executable (e.g. chmod +x runskype). You can then run skype by doing ./runskype from the directory containing the script or put the script somewhere in your path e.g. /usr/local/bin and you can then just enter "runskype" in a terminal. You can even make a menu or desktop entry for runskype if you wish.
    It didn't do the function that the command line was for, which was being able to detect my cam.

  6. #6
    Join Date
    Apr 2008
    Location
    /home/ibutho
    Beans
    1,365

    Re: I need help creating a launcher that involves a command line . . .

    If Skype just needs access to the libraries in /usr/lib/libv4l, try
    Code:
    sudo ln -s /usr/lib/libv4l/* /usr/local/lib/.
    After that try running skype and see if the camera is detected.

  7. #7
    Join Date
    Jan 2008
    Location
    Goshen In
    Beans
    98
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: I need help creating a launcher that involves a command line . . .

    Quote Originally Posted by ibutho View Post
    If Skype just needs access to the libraries in /usr/lib/libv4l, try
    Code:
    sudo ln -s /usr/lib/libv4l/* /usr/local/lib/.
    After that try running skype and see if the camera is detected.
    Nope. Still isn't detected unless I enter
    Code:
    LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
    In the terminal manualy.

    The script didn't work either.

  8. #8
    Join Date
    Jan 2008
    Location
    Goshen In
    Beans
    98
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: I need help creating a launcher that involves a command line . . .

    Bump

    Anybody have a better answer???

  9. #9
    Join Date
    May 2008
    Beans
    Hidden!

    Re: I need help creating a launcher that involves a command line . . .

    Quote Originally Posted by ibutho View Post
    Create a script e.g. runskype and put the commands below
    Code:
    #!/bin/bash
    LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
    skype
    Make the script executable (e.g. chmod +x runskype). You can then run skype by doing ./runskype from the directory containing the script or put the script somewhere in your path e.g. /usr/local/bin and you can then just enter "runskype" in a terminal. You can even make a menu or desktop entry for runskype if you wish.
    This was pretty close, however the script should be:

    Code:
    #!/bin/bash
    export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
    skype
    Because variables are not propogated to child processes without using export.

  10. #10
    Join Date
    Jan 2008
    Location
    Goshen In
    Beans
    98
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Talking Re: I need help creating a launcher that involves a command line . . .

    Quote Originally Posted by snova View Post
    This was pretty close, however the script should be:

    Code:
    #!/bin/bash
    export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
    skype
    Because variables are not propogated to child processes without using export.
    THANK YOU THANK YOU THANK YOU

    *dances with glee*

Bookmarks

Posting Permissions

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