summaryrefslogtreecommitdiffstats
path: root/XMonad/Core.hs
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad/Core.hs')
-rw-r--r--XMonad/Core.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/XMonad/Core.hs b/XMonad/Core.hs
index eedeed4..950a936 100644
--- a/XMonad/Core.hs
+++ b/XMonad/Core.hs
@@ -354,6 +354,7 @@ catchIO f = io (f `catch` \e -> hPrint stderr e >> hFlush stderr)
spawn :: MonadIO m => String -> m ()
spawn x = spawnPID x >> return ()
+-- | Like 'spawn', but returns the 'ProcessID' of the launched application
spawnPID :: MonadIO m => String -> m ProcessID
spawnPID x = io $ forkProcess $ executeFile "/bin/sh" False ["-c", x] Nothing