From 9eb74bc6c3c5c41bf1947cd90bdbe0dcdd147e04 Mon Sep 17 00:00:00 2001 From: "allbery.b" Date: Mon, 30 Mar 2015 18:05:23 +0200 Subject: mate-comment-fixup Ignore-this: 687b5edc9220469f3e58abcfd4f6449c Correct the docstrings / comments in X.C.Mate, which still referenced gnomeConfig. Also update the session manager configuration to use dconf and a current (on Mint at least) path for the session config. darcs-hash:20150330160523-181ff-bbd5af2959609dc9de23a10ba40360da7d0628a5.gz --- XMonad/Config/Mate.hs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'XMonad') diff --git a/XMonad/Config/Mate.hs b/XMonad/Config/Mate.hs index 153b259..1a32916 100644 --- a/XMonad/Config/Mate.hs +++ b/XMonad/Config/Mate.hs @@ -37,9 +37,9 @@ import System.Environment (getEnvironment) -- > import XMonad -- > import XMonad.Config.Mate -- > --- > main = xmonad gnomeConfig +-- > main = xmonad mateConfig -- --- For examples of how to further customize @gnomeConfig@ see "XMonad.Config.Desktop". +-- For examples of how to further customize @mateConfig@ see "XMonad.Config.Desktop". mateConfig = desktopConfig { terminal = "mate-terminal" @@ -50,7 +50,7 @@ mateKeys (XConfig {modMask = modm}) = M.fromList $ [ ((modm, xK_p), mateRun) , ((modm .|. shiftMask, xK_q), spawn "mate-session-save --logout-dialog") ] --- | Launch the "Run Application" dialog. gnome-panel must be running for this +-- | Launch the "Run Application" dialog. mate-panel must be running for this -- to work. mateRun :: X () mateRun = withDisplay $ \dpy -> do @@ -68,10 +68,10 @@ mateRun = withDisplay $ \dpy -> do -- xmonad is started. -- -- This action reduces a delay on startup only only if you have configured --- mate-session to start xmonad with a command such as (check local --- documentation): +-- mate-session to start xmonad with a command such as (check local +-- > dconf write /org/mate/desktop/session/required_components/windowmanager "'xmonad'" -- --- > gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string +-- (the extra quotes are required by dconf) mateRegister :: MonadIO m => m () mateRegister = io $ do x <- lookup "DESKTOP_AUTOSTART_ID" `fmap` getEnvironment -- cgit v1.2.3