summaryrefslogtreecommitdiffhomepage
path: root/src/Actions.hs
diff options
context:
space:
mode:
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>2014-05-29 02:17:23 -0400
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>2014-05-29 13:17:05 -0400
commit19bb3834ac44372bd6c86f496b7fb12e65a70821 (patch)
tree17371d7ed5a6f99df9f95d79885ca1538c30a763 /src/Actions.hs
parent8f9c5f1ecec8ee13bb0e803a1f26140bb8d8357e (diff)
downloadxmobar-19bb3834ac44372bd6c86f496b7fb12e65a70821.tar.gz
xmobar-19bb3834ac44372bd6c86f496b7fb12e65a70821.tar.bz2
Stop using '++ "&"' to background an action
Diffstat (limited to 'src/Actions.hs')
-rw-r--r--src/Actions.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Actions.hs b/src/Actions.hs
index 8772b07..5bcfea7 100644
--- a/src/Actions.hs
+++ b/src/Actions.hs
@@ -12,7 +12,7 @@
module Actions (Action(..), runAction, stripActions) where
-import System.Process (system)
+import System.Process (runCommand)
import Control.Monad (void)
import Text.Regex (Regex, subRegex, mkRegex, matchRegex)
import Graphics.X11.Types (Button)
@@ -21,7 +21,7 @@ data Action = Spawn [Button] String
deriving (Eq)
runAction :: Action -> IO ()
-runAction (Spawn _ s) = void $ system (s ++ "&")
+runAction (Spawn _ s) = void $ runCommand s
stripActions :: String -> String
stripActions s = case matchRegex actionRegex s of