[xmonad] Issue 268 in xmonad: U.Run.runProcessWithInputAndWait
calls waitForProcess
codesite-noreply at google.com
codesite-noreply at google.com
Sat Jan 31 10:16:07 EST 2009
Status: New
Owner: ----
New issue 268 by wirtwolff: U.Run.runProcessWithInputAndWait calls
waitForProcess
http://code.google.com/p/xmonad/issues/detail?id=268
What steps will reproduce the problem?
1. Ensure error output is logged or visible.
2. On darcs xmonad run the ff xmonad.hs and create urgent
windows, or use the keybinding for dzenWithArgs. Or
use runProcessWithInputAndWait action somewhere.
Expect function to start a process and kill it after timeout,
with no error output unless something really is in error.
Instead, raises exceptions, but does the right thing and
doesn't crash.
----
-- runProcessWithInputAndWait calls waitForProcess
-- import XMonad.Util.Run (runProcessWithInputAndWait)
import XMonad
import XMonad.Util.EZConfig
-- Create some hidden urgent windows,
-- or press mod-F12 to trigger errors.
-- | only call to runProcessWithInputAndWait in xmc
import XMonad.Util.Dzen -- (dzenWithArgs)
-- | only call to dzenWithArgs
-- (or its U.Dzen variants) in xm contrib
import XMonad.Hooks.UrgencyHook
modKey = mod1Mask
main = do
xmonad $
-- dzenUrgencyHook calls dzenWithArgs when urgents, yields
-- xmon*: waitForProcess: does not exist (No child processes)
withUrgencyHook dzenUrgencyHook
{ args = ["-bg", "darkgreen"] } $
defaultConfig { modMask = modKey }
`additionalKeys`
[ ((modKey, xK_F12), utilDzenBadness) ]
utilDzenBadness = dzenWithArgs
" Calls runProcessWithInputAndWait"
["-ta", "l", "-bg","darkorange","-fg","black"] 2000000
----
Component-Contrib
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
More information about the xmonad
mailing list