_DBUS_ASSERT_ERROR_IS_CLEAR (error);
+ if (_dbus_getenv ("HOME") == NULL)
+ {
+ dbus_set_error_const (error, DBUS_ERROR_NOT_SUPPORTED,
+ "Unable to create DBus keyring with no $HOME");
+ return FALSE;
+ }
if (_dbus_check_setuid ())
{
dbus_set_error_const (error, DBUS_ERROR_NOT_SUPPORTED,