You are not logged in.

#1 2011-05-08 16:20:08

przemeklach
Member
Registered: 2010-06-11
Posts: 9

[SOLVED] Skype PRELOAD Not From Terminal

Hi,

I had to add alias skype='LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype' to my .bashrc file to get my Skype video to work and it works great; however, it only loads this way if I type Skype from terminal.

What I would like is for the preload to happen when someone clicks the Skype icon/shortcut. How would I do that?

Thanks in advance.

Last edited by przemeklach (2011-05-08 20:03:10)

Offline

#2 2011-05-08 17:20:42

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Skype PRELOAD Not From Terminal

I have no way to test this, but I'd try modifying the Exec line of the Skype [Desktop] file and saving it locally.

Offline

#3 2011-05-08 17:24:22

przemeklach
Member
Registered: 2010-06-11
Posts: 9

Re: [SOLVED] Skype PRELOAD Not From Terminal

Ya I thought about that but in gnome 3 I can't figure out how to do a right click and go into the properties of a shortcut.

Offline

#4 2011-05-08 17:40:07

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Skype PRELOAD Not From Terminal

Copy the Skype [Desktop] file for /usr/share/applications to ~/.local/share/applications and edit the Exec line.

Offline

#5 2011-05-08 17:48:39

przemeklach
Member
Registered: 2010-06-11
Posts: 9

Re: [SOLVED] Skype PRELOAD Not From Terminal

So I modified the Command property to be 'LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype'.

I get the following error when I try to run it:

Details: Failed to execute child process "LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so" (No such file or directory)

Offline

#6 2011-05-08 17:56:07

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Skype PRELOAD Not From Terminal

We're close. I found a solution that calls a script to do it:

https://bbs.archlinux.org/viewtopic.php?pid=628722

Offline

#7 2011-05-08 19:03:22

przemeklach
Member
Registered: 2010-06-11
Posts: 9

Re: [SOLVED] Skype PRELOAD Not From Terminal

So setup the bin folder, script and modified the shortcut in /usr/share/applications as outlined in the forum.

When I click the icon it tells me that it cannot find /usr/lib32/libv4l/v4l1compat.so

The weird thing is that it says /usr/lib32/... regardless whether I have /usr/lib/.. or /usr/lib32/... in my script file. I know that the file exists because when I run skype via an alias that has the LD_PRELOAD setup, skype starts fine.

Offline

#8 2011-05-08 19:43:16

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Skype PRELOAD Not From Terminal

Make sure that you have lib32-v4l-utils installed. Copy /usr/share/applications/skype to ~/.local/share/applications. Create a file called something like launch_skype with the only line in it:

LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype

Make that file executable with

chmod +x launch_skype

Edit the 'Exec' line in the skype.desktop file to read the following. Make sure that you put in your user_name:

Exec=/home/{user_name}/.local/share/applications/launch_skype

Last edited by skottish (2011-05-08 19:43:36)

Offline

#9 2011-05-08 19:52:05

przemeklach
Member
Registered: 2010-06-11
Posts: 9

Re: [SOLVED] Skype PRELOAD Not From Terminal

That worked!

Thank you very much.

Offline

#10 2011-05-08 20:00:45

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Skype PRELOAD Not From Terminal

Glad to help. I haven't had a panel in a long time, so I had to think a bit about how to do this.

Please mark the thread as [SOLVED]. You can do that by editing the first post in this thread.

Offline

Board footer

Powered by FluxBB