Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt: Session Management Error

Tags:

qt

Recently I changed the hostname of my computer and now every time I start a qt program i get a message that says

_IceTransSocketUNIXConnect: Cannot connect to non-local host [My old hostname]

Qt: Session managment error: Could not open network socket

But the program still works fine. It just is slow to start up. I am using ubuntu 9.04. Any idea how I can solve this problem?

like image 785
DHamrick Avatar asked Jun 12 '09 14:06

DHamrick


2 Answers

I suspect you have an old session being saved by your window manager (typically GNOME or KDE) that still references the previous hostname (dev3).

Disposing of that session file might solve your problem. Under KDE these are stored in "~$USER/.kde/share/config/session/". There are also directories based upon hostname in ~$USER/.kde/(cache|socket|tmp)-$hostname which you can delete the old ones for the previous hostname. I'm assuming Linux/BSD platform for directory paths, adjust as necessary for other platform targets.

I'm not sure of GNOME session file placement. find ~$USER/ -name "*session*" might be a good start.

like image 69
mctylr Avatar answered Oct 23 '22 11:10

mctylr


In bash you can do

export -n SESSION_MANAGER
like image 24
Friedrich Avatar answered Oct 23 '22 13:10

Friedrich