Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Command (in terminal): leafpad

Result: Leafpad without root rights working fine.

What did I do to cause the error? Maybe I accidentally run

sudo leafpad

Now I am having problems... Neither kdesudo nor gksu are functional.

Command:

kdesudo leafpad

Error:

kdesudo(2831) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display  ":0" 

No protocol specified
No protocol specified
leafpad: Cannot open display: 

Command:

gksu leafpad

Error:

Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files

What must I do to fix the error?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Run this command in the Konsole/Terminal:

sudo rm ~/.Xauthority /root/.Xauthority

That should fix the problem, as new .Xauthority files will be created as needed.

In the future, when running graphical apps as root, you can avoid creating this and other problems by using a graphical frontend like kdesudo (or gksu/gksudo) rather than invoking sudo directly.

share|improve this answer

The error I had was I think very similar:

Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files

I installed gnome-keyring Install gnome-keyring and its dependencies and my problem was solved. My best guess is that the run of apt-get autoremove has caused this error in the first place. (I do not recommend to run this command).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.