Marcin Suchocki - 2006-05-21

I have installed SuSE 10.1 with kernel 2.6.16.13-4.
I compiled wlassistant from sources and I get following error while trying to run it.
Command sudo wlassistant gives following result:

wlassistant: cannot connect to X server

If I run it as usual user it starts normally.
When i ran it as root for the first time i got:

Creating link /root/.kde/socket-laptop.
Created link from "/root/.kde/socket-laptop" to "/tmp/ksocket-root"
Link points to "/tmp/ksocket-root"
/usr/X11R6/bin/iceauth:  creating new authority file /root/.ICEauthority
Creating link /root/.kde/tmp-laptop.
Created link from "/root/.kde/tmp-laptop" to "/tmp/kde-root"
Link points to "/tmp/kde-root"
kbuildsycoca running...
Creating link /root/.kde/cache-laptop.
Created link from "/root/.kde/cache-laptop" to "/var/tmp/kdecache-root"
Link points to "/var/tmp/kdecache-root"
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available!
...
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available!
Invalid entry (missing '=') at /tmp/kde-root/kconf_update2sYFQb.tmp:1
Invalid entry (missing '=') at /tmp/kde-root/kconf_updatefgbUda.tmp:1
Loaded application options.

and wlassistant started.

What should i do tu run it with sudo?
On SuSE 10.0 it worked perfect with sudo.