joi, 28 aprilie 2011

[arch] Fix upside down camera in Skype

On my laptop(an Asus K52F)  the integrated webcam works out of the box in applications such as Cheese.
But when it comes to Skype, the image is upside down.

To fix this you need to install lib32-libv4l from AUR.

yaourt -S lib32-libv4l
After this create /usr/local/bin/skype with the following contents:

exec /usr/bin/skype
exit 0
And now you can launch Skype from your desktop environment and use your webcam properly.

Why it works? It has to do with the PATH environment variable.
 As /usr/local/bin precedes /usr/bin, when the system looks for "skype" it finds it in /usr/local/bin.

In the script above we specified the absolute path to the skype executable so that it knows it's not the same file ( if you would only put skype in there it would enter an infinite cycle)

Niciun comentariu: