"EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported"

10,355

Use gksudo for this:

gksudo gedit

That should do the trick.

Share:
10,355

Related videos on Youtube

André
Author by

André

Updated on September 18, 2022

Comments

  • André
    André over 1 year

    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
    
    • IQAndreas
      IQAndreas almost 11 years
      Is it just a warning, or a fatal error preventing you from running gedit? (regardless, gksudo is the way to go)
  • Eliah Kagan
    Eliah Kagan over 10 years
    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.
  • David Foerster
    David Foerster about 9 years
    -1 Ugh, detaching sudo from the shell is a terrible idea.
  • Tomáš Zato - Reinstate Monica
    Tomáš Zato - Reinstate Monica about 9 years
    bash: gksudo: command not found