How can I switch user in a shell and use the existing gnome display session?

Posted by z7sg on Ask Ubuntu See other posts from Ask Ubuntu or by z7sg
Published on 2011-06-28T12:14:34Z Indexed on 2011/06/28 16:31 UTC
Read the original article Hit count: 276

Filed under:
|
|

If I switch user in a terminal.

su bob

I can't open gedit because bob doesn't own the display.

If I execute

xhost +

before switching to bob I can open the display for some applications but not all. I get the following output when trying to execute gedit:

(crashreporter:4415): GnomeUI-WARNING *: While connecting to session manager: None of the authentication protocols specified are supported.
*
GLib-GIO:ERROR:/build/buildd/glib2.0-2.28.6/./gio/gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about xorg