mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-30 18:33:47 -07:00
restart: don't preserve old args
This commit is contained in:
@@ -151,9 +151,8 @@ spawn x = io $ do
|
|||||||
restart :: Maybe String -> Bool -> X ()
|
restart :: Maybe String -> Bool -> X ()
|
||||||
restart mprog resume = do
|
restart mprog resume = do
|
||||||
prog <- maybe (io $ getProgName) return mprog
|
prog <- maybe (io $ getProgName) return mprog
|
||||||
args <- io $ getArgs
|
args <- if resume then gets (("--resume":) . return . show . windowset) else return []
|
||||||
args' <- if resume then gets (("--resume":) . return . show . windowset) else return []
|
io $ catch (executeFile prog True args Nothing)
|
||||||
io $ catch (executeFile prog True (args' ++ args) Nothing)
|
|
||||||
(const $ return ()) -- ignore executable not found exception
|
(const $ return ()) -- ignore executable not found exception
|
||||||
|
|
||||||
-- | Run a side effecting action with the current workspace. Like 'when' but
|
-- | Run a side effecting action with the current workspace. Like 'when' but
|
||||||
|
Reference in New Issue
Block a user