It is used to determine if a session is graphical or text based, so it's probably best that we set it.
r28882. Tester should run: $ loginctl show-session $XDG_SESSION_ID Before this change you got "Type=tty". Now you should get "Type=x11".
Verified with build 4332.