diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-22 08:03:57 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-22 08:03:57 +0200 |
commit | c6e0ccef29e56f40f5083fce8a6a8cf2788eac76 (patch) | |
tree | d4dc2760468b0f58447aa2985b2d1c78fd750d43 | |
parent | 16ec3fae883c915346c4aeada67975789f0a56cb (diff) | |
download | metatile-c6e0ccef29e56f40f5083fce8a6a8cf2788eac76.tar metatile-c6e0ccef29e56f40f5083fce8a6a8cf2788eac76.zip |
restart: don't preserve old args
darcs-hash:20070522060357-a5988-037eb7484106de44a541f21c41d15c2050e94760
-rw-r--r-- | XMonad.hs | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -150,10 +150,9 @@ spawn x = io $ do -- current window state. restart :: Maybe String -> Bool -> X () restart mprog resume = do - prog <- maybe (io $ getProgName) return mprog - args <- io $ getArgs - args' <- if resume then gets (("--resume":) . return . show . windowset) else return [] - io $ catch (executeFile prog True (args' ++ args) Nothing) + prog <- maybe (io $ getProgName) return mprog + args <- if resume then gets (("--resume":) . return . show . windowset) else return [] + io $ catch (executeFile prog True args Nothing) (const $ return ()) -- ignore executable not found exception -- | Run a side effecting action with the current workspace. Like 'when' but |