0001-Pass-VT-number-to-xinit-if-XDG_VTNR-is-set.patch 708 B

12345678910111213141516171819202122232425262728
  1. From e740aad5d6761ce9a9df48a3d87ff29240433d19 Mon Sep 17 00:00:00 2001
  2. From: Evangelos Foutras <evangelos@foutrelis.com>
  3. Date: Tue, 24 Mar 2015 10:09:33 +0200
  4. Subject: [PATCH] Pass VT number to xinit if XDG_VTNR is set
  5. ---
  6. scripts/startxfce4.in | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/scripts/startxfce4.in b/scripts/startxfce4.in
  9. index d0a74a9..bf3201b 100644
  10. --- a/scripts/startxfce4.in
  11. +++ b/scripts/startxfce4.in
  12. @@ -92,6 +92,10 @@ if test "x$DISPLAY" = "x"
  13. then
  14. echo "$0: Starting X server"
  15. prog=xinit
  16. +
  17. + if test ! "x$XDG_VTNR" = "x"; then
  18. + SERVERRC="vt$XDG_VTNR $SERVERRC"
  19. + fi
  20. else
  21. echo "$0: X server already running on display $DISPLAY"
  22. prog=/bin/sh
  23. --
  24. 2.3.4