On 2011-03-10, [email protected] <[email protected]> wrote:
> From: Liam O'Toole <[email protected]>
> Date: Wed, 09 Mar 2011 21:32:34 +0000 (UTC)
>> ... script to be placed somewhere in the user's path
>> such that it won't get clobbered by an official Debian package.
>> /usr/local/bin is the place to be.
>
> Right oh; this trivial script works.
>
> peter@dalton:~$ ls -l /usr/local/bin/skype
> -rwxr-xr-x 1 root staff 67 Mar  9 18:26 /usr/local/bin/skype
> peter@dalton:~$ cat /usr/local/bin/skype
> #!/bin/sh
> LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype
>
> I didn't succeed in using "exec ..." and the script process 
> continues along with skype.  Is there a way to preload the 
> module, start skype, terminate the script and leave skype 
> running?

This should do it:

        #!/bin/sh
        export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
        exec /usr/bin/skype

-- 
Liam O'Toole
Cork, Ireland


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to