[xmonad] xmonad from gnome-session-2.26

Alex Feigin mysteriousentity at gmail.com
Mon Jun 1 05:37:06 EDT 2009


Hi,

I'm getting the following in .xsession-errors:

x-session-manager[7478]: WARNING: Unable to find provider 'xmonad' of
required component 'windowmanager'

Any hints?

Alexey

2009/5/30 Joachim Breitner <mail at joachim-breitner.de>
>
> Hi,
>
> If you want to use xmonad from gnome-session-2.26, the correct way seems
> to be to specify
> # gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string
>
> This unfortunately has the effect that gnome-session waits a few seconds
> for the window manger (now xmonad) to register via dbus, see
> http://live.gnome.org/SessionManagement/GnomeSession
>
> xmonad does not support the gnome-session protocol, but you can work
> around the delay with this code in xmonad.hs
>
> import XMonad
> [...]
> import System.Environment
> import System.Cmd
> [...]
> main = do
>        env <- getEnvironment
>        case lookup "DESKTOP_AUTOSTART_ID" env of
>          Just id -> do
>                rawSystem "dbus-send" ["--session","--print-reply=string","--dest=org.gnome.SessionManager","/org/gnome/SessionManager","org.gnome.SessionManager.RegisterClient","string:xmonad","string:"++id]
>                return ()
>          Nothing -> return ()
>        xmonad $ defaultConfig {
> [...]      -- simple stuff
>    }
>
>
> I guess some stuff can be improved about this, such as using the DBus
> package from hackage, but it’s a start.
>
> Greetings,
> Joachim
>
> --
> Joachim Breitner
>  e-Mail: mail at joachim-breitner.de
>  Homepage: http://www.joachim-breitner.de
>  ICQ#: 74513189
>  Jabber-ID: nomeata at joachim-breitner.de
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>


More information about the xmonad mailing list