This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KUniqueApplication: Cannot find the D-Bus session server

Tags: None
(comma "," separated)
urbanomad64
Registered Member
Posts
13
Karma
0
OS
After having read Valentin Rusu's article announcing kwalletd-gpg, I thought I'd have a look. I discovered that my own normal kwallet manager (version 4.10.5-1.92.3-x86_64) is not launching at all. I ran it from a Terminal window and got the following error. I am running openSUSE 12.3. Any help/suggestions would be greatly appreciated. I have uninstalled and reinstalled it with yast and that didn't help either.

Code: Select all
kwalletd(14484): KUniqueApplication: Cannot find the D-Bus session server:  "Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"

kwalletd(14483): KUniqueApplication: Pipe closed unexpectedly.
User avatar
google01103
Manager
Posts
6668
Karma
25
what happens if you run
Code: Select all
export DISPLAY=:0.0; kwalletmanager


OpenSuse Leap 42.1 x64, Plasma 5.x

urbanomad64
Registered Member
Posts
13
Karma
0
OS
google01103 wrote:what happens if you run
Code: Select all
export DISPLAY=:0.0; kwalletmanager


Nothing happened, it just got a blank prompt

When I run
Code: Select all
sudo kwalletd
again, I get the same error as before and I have upgraded to KDE 4.11 in the meantime... kwalletmanager 4.11.0-63.2-x86_64

I have an NVidia graphics card with nouveau drivers, if that helps.
urbanomad64
Registered Member
Posts
13
Karma
0
OS
different error when running
Code: Select all
sudo kwalletmanager

unnamed app(7061): KUniqueApplication: Cannot find the D-Bus session server:  "Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"

unnamed app(7060): KUniqueApplication: Pipe closed unexpectedly.
User avatar
google01103
Manager
Posts
6668
Karma
25
urbanomad64 wrote:different error when running
Code: Select all
sudo kwalletmanager

unnamed app(7061): KUniqueApplication: Cannot find the D-Bus session server:  "Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"

unnamed app(7060): KUniqueApplication: Pipe closed unexpectedly.


when using sudo you're trying to run a gui app using a command designed for command line apps, to run a gui app as root use kdesu

could you start a new instance of Konsole and try the kwalletmanager again without su, sudo or kdesu


OpenSuse Leap 42.1 x64, Plasma 5.x

urbanomad64
Registered Member
Posts
13
Karma
0
OS
google01103 wrote:
urbanomad64 wrote:different error when running
Code: Select all
sudo kwalletmanager

unnamed app(7061): KUniqueApplication: Cannot find the D-Bus session server:  "Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"

unnamed app(7060): KUniqueApplication: Pipe closed unexpectedly.


when using sudo you're trying to run a gui app using a command designed for command line apps, to run a gui app as root use kdesu

could you start a new instance of Konsole and try the kwalletmanager again without su, sudo or kdesu

Thank you for the explanation :)

Code: Select all
kwalletmanager
Fontconfig warning: "/etc/fonts/conf.d/56-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
urbanomad64
Registered Member
Posts
13
Karma
0
OS
If I just try to launch from the KDE Menu, nothing happens but if I run

Code: Select all
kdesu kwalletmanager


Then I get the wallet icon in the Task Manager Panel, then I can manage my wallets
User avatar
google01103
Manager
Posts
6668
Karma
25
yea but if you run "kdesu kwalletmanager" you are running it as root

all the su utilites are used to run something as a different user (Root being the default)


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
How are you launching this terminal, and which terminal program is it? It sounds like either some script is unsetting DISPLAY and DBUS_SESSION_BUS_ADDRESS, or you are trying to use a virtual terminal.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
urbanomad64
Registered Member
Posts
13
Karma
0
OS
bcooksley wrote:How are you launching this terminal, and which terminal program is it? It sounds like either some script is unsetting DISPLAY and DBUS_SESSION_BUS_ADDRESS, or you are trying to use a virtual terminal.

I am using Konsole 2.11 from KDE 4.11, which I launch directly from the KDE Favourites menu.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you check to see if the environment variables "DISPLAY" and "DBUS_SESSION_BUS_ADDRESS" are set in a freshly launched Konsole window?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
urbanomad64
Registered Member
Posts
13
Karma
0
OS
bcooksley wrote:Can you check to see if the environment variables "DISPLAY" and "DBUS_SESSION_BUS_ADDRESS" are set in a freshly launched Konsole window?

Sorry, but I don't know how to check those things. Would you guide me?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try running these two commands.
Code: Select all
echo $DISPLAY
echo $DBUS_SESSION_BUS_ADDRESS

If a blank line is output - they are not set or are empty.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
urbanomad64
Registered Member
Posts
13
Karma
0
OS
bcooksley wrote:Try running these two commands.
Code: Select all
echo $DISPLAY
echo $DBUS_SESSION_BUS_ADDRESS

If a blank line is output - they are not set or are empty.

Thank you :)

Code: Select all
echo $DISPLAY
:0

Code: Select all
cho $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-yYbUhMQUIE,guid=94232e00abc6e1ef69a031535211bee0
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That output is fine. Running "kwalletmanager" should result in KWalletManager being able to launch without a problem - although it may immediately go into the system tray, into the Hidden Icons area. Is this the case?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]