From 49fe8baf11846db67486ad348b443717702f4001 Mon Sep 17 00:00:00 2001 From: gwern0 Date: Mon, 12 Jul 2010 06:56:32 +0200 Subject: WindowGo: bulk up 'runOrRaise' doc to point to 'raiseMaybe' for shell scripting Ignore-this: f8f2b04fe7c49827b935ada1345d2ce8 darcs-hash:20100712045632-f7719-f417f9e132c5b90d0dd2c4d2fcef172a086f1ce2.gz --- XMonad/Actions/WindowGo.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'XMonad/Actions') diff --git a/XMonad/Actions/WindowGo.hs b/XMonad/Actions/WindowGo.hs index aa1cf69..6d8a917 100644 --- a/XMonad/Actions/WindowGo.hs +++ b/XMonad/Actions/WindowGo.hs @@ -80,8 +80,11 @@ ifWindows qry f el = withWindowSet $ \wins -> do ifWindow :: Query Bool -> ManageHook -> X () -> X () ifWindow qry mh = ifWindows qry (windows . appEndo <=< runQuery mh . head) --- | 'action' is an executable to be run via 'safeSpawnProg' (of "XMonad.Util.Run") if the Window cannot be found. --- Presumably this executable is the same one that you were looking for. +{- | 'action' is an executable to be run via 'safeSpawnProg' (of "XMonad.Util.Run") if the Window cannot be found. + Presumably this executable is the same one that you were looking for. + Note that this does not go through the shell. If you wish to run an arbitrary IO action + (such as 'spawn', which will run its String argument through the shell), then you will want to use + 'raiseMaybe' directly. -} runOrRaise :: String -> Query Bool -> X () runOrRaise = raiseMaybe . safeSpawnProg -- cgit v1.2.3