[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how can I start one script as soon as screensaver start ?



I have no idea,but im gonna just say it,replace the screensaver binary with a shell script,then you can have the script launch the screensaver and your script.I have know clue if that will work,just an idea

On 9/6/06, KLEIN Stéphane <klein.stephane@gmail.com> wrote:
My question : how can I start one script as soon as screensaver start ?

I try this bad solution :

in "gnome-screensaver-2.14.3/src/gs-monitor.c", at the beginin of
"listener_active_changed_cb", I've add this code :

char *command;
command = "myfoobarscript";
execv(command);

but it don't work.

Someone can help me ?

Thanks for your help
--Stéphane



Reply to: