$su user2
$echo $DISPLAY
:0.0
$ kate
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kate: cannot connect to X server :0.0
$ gedit
No protocol specified
Не удалось открыть дисплей:
Запустите «gedit --help» для получения полного списка поддерживаемых ключей.
$ gedit
** (gedit:11898): WARNING **: Couldn't register with accessibility bus:
Did not receive a reply. Possible causes include: the remote application
did not send a reply, the message bus security policy blocked the reply,
the reply timeout expired, or the network connection was broken.
(gedit:11898): EggSMClient-WARNING **: Failed to connect to the session
manager: None of the authentication protocols specified are supported
** (gedit:11898): WARNING **: Could not connect to session bus