skype webcam

Asked by idan ashkenazi

my webcam works on cheese.
for good operation of skype i have to start it by copy-paste into the terminal this commands:

export XLIB_SKIP_ARGB_VISUALS=1
bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype'

is there a way to keep those commands permanent and let skype load on start-up automatically?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu skype Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

Solution 1:
=====
Try editing the file "/home/yourusername/.gnomerc" and add those lines there. You may need to logout and re-login for this to take effect.

Solution 2:
==

Alternately you can modify the skype .desktop file . This will modify the menu item launcher.

try

sudo gedit /usr/share/applciations/skype.desktop

then change the "Exec=skype" line to "Exec=mySkype".

Now cut and paste the following into a new file in /usr/local/bin called "mySkype" (use the following command)

sudo gedit /usr/local/bin/mySkype

--Cut below line--

#!/bin/bash
export XLIB_SKIP_ARGB_VISUALS=1
bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype'
skype
--cut above line--

Using nautilus, navigate to /usr/local/bin, then set the permissions to user & group: "execute".

Note that if you re-install skype, you will probably need to modify the .desktop file again.

If you have created the "mySkype" script correclty, then you should be able to type "mySkype" from a terminal and have skype launch. If this does not work, check you have the correct permissions on the file (or run "sudo chmod 755 /usr/local/bin/mySkype").

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Make a script then call that instead of the normal skype binary

gksudo /usr/bin/specialskype

add this text:

#!/bin/bash
export XLIB_SKIP_ARGB_VISUALS=1
bash -c 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype'

Save the new file and close gedit. Then run:

sudo chmod +x /usr/bin/specialskype

then run:

alacarte

Edit the menu item and make it run /usr/bin/specialskype instead of the usual skype

Done.

If you launch it from command line you can run:

gksudo gedit ~/.bashrc

add this line at the bottom:

alias skype=`/usr/bin/specialskype'

Save the new file and close gedit then run:

source ~/.bashrc

Now however you run the command it will run in the special way.

Can you help with this problem?

Provide an answer of your own, or ask idan ashkenazi for more information if necessary.

To post a message you must log in.