Hi,

I have this small shell script that shows a pictures (with qiv) and
locks the screen (with xtrlock). It basically looks like this:

    #!/bin/sh
    qiv -f -i /some/image.png &
    pid=$!
    xtrlock
    sleep 5     # to see that qiv works
    kill $pid

It works fine when I launch it from a terminal or the awesome prompt,
but not when I launch it with a key via awful.util.spawn.

The strange thing is that the script itself is called, but xtrlock does
nothing. It just returns. The picture is shown and removed after the
five seconds delay (I put that in to see that qiv actually works,
everything would go too fast otherwise).

Now this might be a bug in xtrlock, but I'm not sure. How can it be that
it works from the prompt but not from a spawn()? Should it get the same
environment and everything?


Greetings,
Frank

-- 
Frank Blendinger | fb(at)intoxicatedmind.net | GPG: 0x0BF2FE7A
Fingerprint: BB64 F2B8 DFD8 BF90 0F2E 892B 72CF 7A41 0BF2 FE7A
  "Just because I don't care doesn't mean I don't understand."
                                               (Homer Simpson)

Attachment: signature.asc
Description: Digital signature

Reply via email to