You are not logged in.

#1 2011-02-15 04:32:04

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

How place an LD_PRELOAD bash command into a .desktop file (LXDE)

To enable video in Skype with my webcam I must launch skype the following way:

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

To get that command done from my LXDE menu I tried to edit the skype.desktop file and place that line after the "Exec" desktop spec. It does not work, in quotes or not, nor with a full pathname to skype.

How can I force my desktop entry to run the command above?


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#2 2011-02-15 05:20:07

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: How place an LD_PRELOAD bash command into a .desktop file (LXDE)

Wrap it in a script

Offline

#3 2011-02-15 05:26:32

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: How place an LD_PRELOAD bash command into a .desktop file (LXDE)

bash -c "LD_PRELOAD=... skype" should work too, for example.

Offline

Board footer

Powered by FluxBB