# /sbin/yast2 & ......."Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"

when I try to launch some application as yast, apper, gparted… I gettin this error, no I’m not in text mode X server is runin every application behave just OK, but when I try to launch apps from terminal I’m gettin this

 linux:/home # apper
apper(12808): KUniqueApplication: Cannot find the D-Bus session server:   "Unable to autolaunch a dbus-daemon without a $DISPLAY for X11" 

apper(12807): KUniqueApplication: Pipe closed unexpectedly. 

 

I suppose it’s problem with some library which handles teh interface D-Bus -> X11. Looked at Xorg logs but nothing suspicious so I guess it should be D-Bus fault but there’s another interesting thing - there’s no messages file in /var/log ??

Looks like you switched to root by running “su” in your user session, right?
This doesn’t work.

Use kdesu, gnomesu or xdg-su to run graphical applications as root, or “su -”.
And you should not run apper as root anyway. It’s designed to be run as user.

Try this:

export $(dbus-launch)

and make sure that packagekitd is executable

stat -c '%A' /usr/lib/packagekitd 

you’re right wolfi I open the default teminal and did su -s. So I opened terminal in super user mode and it’s ok