I tried some more: it seems I have to run the routine __awful.util.spawn__ 
twice. The 2nd time I run it the program is launched. I have two snipplets 
which deliver the same behavior:


==== 1 ====
function zshrun(command)
   awful.util.spawn("/bin/zsh -c ' . ~/.zshrc ; ".. command .. "'")
end
   key({ modkey },  "r",
      function ()
         awful.prompt.run({ prompt = "Run: " }, mypromptbox[mouse.screen],
          zshrun,
         awful.completion.bash, -- alternatively .shell
         awful.util.getdir("cache") .. "/history_eval")
      end),


==== 2 ====
    key({ modkey }, "R",
        function ()
            awful.prompt.run({ prompt = "Run: " },
            mypromptbox[mouse.screen],
            awful.util.spawn,
            awful.completion.shell,
            awful.util.getdir("cache") .. "/history")
        end),


In both cases I can enter the command to lauch once - nothing happens. On the 
2nd time it works... What my this be? 

/G

-- 

http://gerolf.ziegenhain.com

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to