aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions
diff options
context:
space:
mode:
authorgwern0 <gwern0@gmail.com>2010-07-12 06:56:32 +0200
committergwern0 <gwern0@gmail.com>2010-07-12 06:56:32 +0200
commit49fe8baf11846db67486ad348b443717702f4001 (patch)
treec9f9d5e3423c7b50f8003aad9183bbf5f62ebe16 /XMonad/Actions
parentbbdc5064c3e180d2e0d72003a3079e0b56ae5845 (diff)
downloadXMonadContrib-49fe8baf11846db67486ad348b443717702f4001.tar.gz
XMonadContrib-49fe8baf11846db67486ad348b443717702f4001.tar.xz
XMonadContrib-49fe8baf11846db67486ad348b443717702f4001.zip
WindowGo: bulk up 'runOrRaise' doc to point to 'raiseMaybe' for shell scripting
Ignore-this: f8f2b04fe7c49827b935ada1345d2ce8 darcs-hash:20100712045632-f7719-f417f9e132c5b90d0dd2c4d2fcef172a086f1ce2.gz
Diffstat (limited to 'XMonad/Actions')
-rw-r--r--XMonad/Actions/WindowGo.hs7
1 files changed, 5 insertions, 2 deletions
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