Created attachment 6121 Pass VT number to xinit if XDG_VTNR is set startx does this as well so that the launched session works correctly with logind: http://cgit.freedesktop.org/xorg/app/xinit/commit/?id=44915d6 I've added the attached patch to the xfce4-session package in Arch Linux, though I'm not sure of its correctness. Fedora has been patching startxfce4 for a while now too. [1] While my patch checks if XDG_VTNR is set (I believe this is set by pam_systemd), both startx and the Fedora patch parse the output of `tty` to determine the current VT; I don't know which approach is better. [1] http://pkgs.fedoraproject.org/cgit/xfce4-session.git/tree/xfce-session-4.10-startxfce4.patch
Yeah, seems to be a limitation of logind. Thanks for the patch! Pushed to master in: commit 04e45b5bbdefe4e174c95dcbc70a725b8198b50d Author: Evangelos Foutras <evangelos@foutrelis.com> Date: Tue Mar 24 10:09:33 2015 +0200 Pass VT number to xinit if XDG_VTNR is set http://git.xfce.org/xfce/xfce4-session/commit/?id=04e45b5bbdefe4e174c95dcbc70a725b8198b50d