aboutsummaryrefslogtreecommitdiffstats
path: root/Run.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Run.hs')
-rw-r--r--Run.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Run.hs b/Run.hs
index cc3943a..1caecf1 100644
--- a/Run.hs
+++ b/Run.hs
@@ -108,8 +108,8 @@ unsafeSpawn = spawn
-- | Run a given program in the preferred terminal emulator. This uses safeSpawn.
safeRunInTerm :: String -> X ()
-safeRunInTerm command = asks terminal >>= \t -> safeSpawn t ("-e " ++ command)
+safeRunInTerm command = asks (terminal . config) >>= \t -> safeSpawn t ("-e " ++ command)
unsafeRunInTerm, runInTerm :: String -> X ()
-unsafeRunInTerm command = asks terminal >>= \t -> unsafeSpawn $ t ++ " -e " ++ command
+unsafeRunInTerm command = asks (terminal . config) >>= \t -> unsafeSpawn $ t ++ " -e " ++ command
runInTerm = unsafeRunInTerm