Help with KDE?

I realize this is proprietary software, but the problem isn’t with Skype but KDE.

I recently installed the latest beta of skype downloaded from their website. Upon installation, I realized it didn’t like my V4L2 video camera and so I wrote a shell script called ‘skype’ and put it in /usr/local/bin/

The contents of the shell script were as follows:

#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype

When I call the command skype from the command line, it preloads the library, enabling all to see my bad hair days :wink:

However, when I run skype from the Run Command dialog(Alt+F2) in KDE, it loads skype from /usr/bin, ignoring my script. I verify this with the command

ps -aef | grep skype

I’d prefer to be able to do this without changing the .desktop file, since I use /usr/local/bin for other testing stuff. (fixing the problem, not creating a workaround)

I’m on a fairly fresh installation of 64-bit OpenSuSE 11.2 and have the necessary 32-bit packages installed.

Any suggestions?

What does your PATH environment variable look like? Apparently it’s searching ‘/usr/bin’ first, and it might help to move ‘/usr/local/bin’ to the front of the PATH string.

This is the value of my path environment variable:

/usr/lib64/mpi/gcc/openmpi/bin:/home/alex/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

It looks like /usr/local/bin is before /usr/bin:

cody@home:~> which skype
/usr/local/bin/skype
cody@home:~> cat `which skype`
#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/skype