! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
startxfce4 needs to pass the current VT to xinit
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Evangelos Foutras 2015-03-24 09:53:38 CET
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
Comment 1 Eric Koegel editbugs 2015-03-28 15:16:53 CET
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

Bug #11759

Reported by:
Evangelos Foutras
Reported on: 2015-03-24
Last modified on: 2015-03-28

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
4.12.0

Attachments

Pass VT number to xinit if XDG_VTNR is set (708 bytes, patch)
2015-03-24 09:53 CET , Evangelos Foutras
no flags

Additional information