The officially official Devuan Forum!

You are not logged in.

#1 2019-09-29 04:19:01

Copper36
Member
Registered: 2018-11-27
Posts: 55  

Running an app from menu vs terminal

Hi,

Just bumped into a problem, maybe something related to file ownership. I need to start Skypeforlinux on my box with preloading of the library which flips the image (my webcam is installed upside-down).
So when I run this from terminal:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/bin/skypeforlinux

everything is OK, Skype starts, image is correct (which means preloading works, because without it the picture is upside-down).
But if I edit the entry in the Main Menu with exactly the same command, I get this error:

Failed to execute command "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/bin/skypeforlinux".
Failed to execute child process "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so" (No such file or directory)

What might be a problem?

Thank you.

Offline

#2 2019-09-29 10:30:58

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Running an app from menu vs terminal

The Exec line in the .desktop file doesn't understand parameters, try this command instead:

sh -c "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/bin/skypeforlinux"

Brianna Ghey — Rest In Power

Offline

#3 2019-10-12 03:13:04

Copper36
Member
Registered: 2018-11-27
Posts: 55  

Re: Running an app from menu vs terminal

Head_on_a_Stick wrote:

The Exec line in the .desktop file doesn't understand parameters, try this command instead:

sh -c "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/bin/skypeforlinux"

Thanks!

Offline

Board footer