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.

I am on ubuntu 12.10.

Every time that I try to open gedit on root this appears:

(gedit:3254): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

** (gedit:3254): WARNING **: Could not connect to session bus
share|improve this question
    
Is it just a warning, or a fatal error preventing you from running gedit? (regardless, gksudo is the way to go) –  IQAndreas Jul 14 '13 at 12:47

2 Answers 2

up vote 4 down vote accepted

Use gksudo for this:

gksudo gedit

That should do the trick.

share|improve this answer

I had the same issue. Resolved with the following command

sudo gedit & 
share|improve this answer
    
Note that the messages shown in the Terminal are not really a problem, and all running gedit with & after it does is to suppress those messages. The underlying (extremely minor) issue that produces the messages is not fixed by doing that. @guntbert sudo gedit might make gedit not work when run as the non-root user. We we've discussed, I think it's not very likely to lock out local GUI logins, but I am not 100% sure. It might or might not be the practical cause of such problems. –  Eliah Kagan Jan 11 at 11:09

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.