Skip to main content
Topic: xmobar: SocketError {socketErrorMessage = "Network.Socket.connect: <socket: 12>: (Read 33 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

xmobar: SocketError {socketErrorMessage = "Network.Socket.connect: <socket: 12>:

I have recently started using xmonad. When I tried to start xmobar from xmonad like the following,

Code: [Select]
main = do
  xmproc <- spawnPipe ("xmobar -x 0 "++ myXmobarrc)
  xmonad $ defaults {
      logHook = dynamicLogWithPP $ xmobarPP {
            ppOutput = hPutStrLn xmproc
          , ppTitle = xmobarColor xmobarTitleColor "" . shorten 100
          , ppCurrent = xmobarColor xmobarCurrentWorkspaceColor ""
          , ppSep = "   "
      }
 --     , manageHook = manageDocks <+> myManageHook
--      , startupHook = docksStartupHook <+> setWMName "LG3D"
--      , startupHook = setWMName "LG3D"
      , handleEventHook = docksEventHook
  }
nothing appears in my screen. And also when I start from the commandline the error I get is the following:

Code: [Select]
xmobar: SocketError {socketErrorMessage = "Network.Socket.connect: <socket: 12>: does not exist (No such file or directory)", socketErrorFatal = True, socketErrorAddress = Just (Address "unix:path=/run/user/1000/bus")}

I have tried the solution posted here. However, nothing worked.

From this thread thread it looks like some init level issue. Could someone suggest me a direction to troubleshoot (or) fix this issue?
Andromedan