A number of users complained that in 2.18 the keyboard indicator does not show the short layout names properly after the GNOME session restart - it shows internal XKB identifiers instead. Now I know why. DBUS session envvar avialable to bonobo-activation-server points to the previous (non-existent) session. The bug is half year old :///