Ubuntu – How to get webcam working with skype on Ubuntu 13.04


In the past I was able to get my webcam working with Skype using the fix described here:

Skype video not working after upgrade from 11.10 to 12.04

It meant starting skype with:

LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype

This worked well on Ubuntu 12.04, but doesn't work anymore on Ubuntu 13.04. Probably because the executable file in /usr/bin/skype is replaced by a script that says:

# Tip in https://launchpad.net/bugs/1002187, comment #31
# Bug filed against Skype: https://jira.skype.com/browse/SCL-980
export LD_PRELOAD="/usr/lib/i386-linux-gnu/mesa/libGL.so.1${LD_PRELOAD:+:}$LD_PRELOAD"
exec /usr/lib/skype/skype "$@"

It seems that this script is needed to work around a bug to start Skype on Ubuntu 13.04 but it is probably also overriding my own webcam fix and I guess that's the reason it is not working anymore.

So I need to add my webcam fix to this script, but I have a hard time finding out how? Any help with this?

Best Answer

I fixed this by creating the file /usr/local/bin/skype with the following contents:

LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/lib/skype/skype

And making it executable:

sudo chmod a+x /usr/local/bin/skype

I had a fresh Raring install so I also needed to install the 32bit libs.

sudo apt-get install ia32-libs
Related Question