denesb / xfce4-i3-workspaces-plugin

A workspaces plugin for xfce4 and the i3 window manager.
GNU General Public License v3.0
122 stars 19 forks source link

cannot connect to i3 window manager socket path atom library is null #30

Open psamim opened 8 years ago

psamim commented 8 years ago

Hi,

I am not sure if this error is caused by xfce4-i3-workspaces-plugin or not. I start i3 and xfce4-panel using startx without any display manager.

When I close i3, the message cannot connect to i3 window manager socket path atom library is null is displayed continuously. When I switch to another TTY and kill the process /usr/lib/xfce4/panel/wrapper-1.0 /usr/lib/xfce4/panel/plugins/libi3workspaces.so, the message is stopped.

Thanks, Samim

denesb commented 8 years ago

Yes, the plugin tries to reconnect to the window manager continuously after a disconnect. I'm not sure what to do about that. This makes sense when you are running an i3 session and the window manager have restarted or crashed. You can remove the plugin from the panel when you are done using i3 and then the spamming will stop.

psamim commented 8 years ago

Maybe it can stop trying to reconnect after some time.

Or react differently on i3 exit command.

Thanks, Samim

denesb commented 8 years ago

I have no way of determining how i3 exited. I could modify it to check only once in a second.

psamim commented 8 years ago

Frequency of checking does not matter. As long as it is checking, I cannot exit i3 and return to shell. I think we can have maximum retries.

psamim commented 8 years ago

But it seems that the ultimate solution is to have an exit event for i3ipc.

acrisci commented 8 years ago

I'm working in the exit event. It's done, I just need to do some cleanup.

rharish101 commented 4 years ago

@denesb Sorry for bumping this old issue, but i3 has solved this here: https://i3wm.org/docs/ipc.html#_shutdown_event. Are you still willing to work on this? If yes, will you fix this issue using this shutdown event?

liar666 commented 4 years ago

WFIW, this makes my ".xsession-errors.old" quickly fill the 37GB left of my /home partition :{

hypergig commented 4 years ago

This happened to me too.. after I restarted i3 to make a config change