diff options
author | Evangelos Foutras <evangelos@foutrelis.com> | 2015-03-24 10:09:33 +0200 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2015-03-28 17:00:05 +0300 |
commit | 04e45b5bbdefe4e174c95dcbc70a725b8198b50d (patch) | |
tree | f6561621917498eb7c950d458e174fade33bc477 /scripts | |
parent | 2b12a2365ec2677c9642c670c5bb4046efb54299 (diff) | |
download | xfce4-session-04e45b5bbdefe4e174c95dcbc70a725b8198b50d.tar.gz |
Pass VT number to xinit if XDG_VTNR is set
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/startxfce4.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/startxfce4.in b/scripts/startxfce4.in index d0a74a94..bf3201b6 100644 --- a/scripts/startxfce4.in +++ b/scripts/startxfce4.in @@ -92,6 +92,10 @@ if test "x$DISPLAY" = "x" then echo "$0: Starting X server" prog=xinit + + if test ! "x$XDG_VTNR" = "x"; then + SERVERRC="vt$XDG_VTNR $SERVERRC" + fi else echo "$0: X server already running on display $DISPLAY" prog=/bin/sh |