Permalink
Browse files

back-to-basic: move update to the top

  • Loading branch information...
1 parent 94459cf commit caf4d0a92314678a279d66cf6c2a067da77306d5 @falconindy committed Nov 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 _posts/2012-08-25-back-to-basics-with-x-and-systemd.textile
@@ -4,6 +4,8 @@ layout: article
categories: articles
---
+*2012/11/02 Update*: Arch Linux now provides this by default. /etc/X11/xinit/xserverrc will start your X session on XDG_VTNR, if the environment variable is set. Therefore, if you're using Arch, stop reading here and update to at least xorg-xinit 1.3.2-3.
+
This is for everyone who says that systemd doesn't work well with startx as far as maintaining an authenticated session. There's no "ck-session-launch" equivalent, sure, but it isn't needed. When you login on at a getty, you already have an authenticated session. However, if you run startx without parameters, you'll find that a new terminal is allocated -- one where you aren't authenticated. According to upstream, it's just a matter of convincing xinit (the underlying mechanism in startx) to not allocate a new TTY. How do we do that? By merely passing the VT we're current on to xinit.
<pre>
@@ -55,5 +57,3 @@ exec /usr/bin/X -nolisten tcp "$vt" "$@"
{% endhighlight %}
Now when you run startx, it'll start the server on the appropriate VT to keep your authenticated session, and .xinitrc continues to describe your client side behavior.
-
-*2012/11/02 Update*: Arch Linux now provides this by default. /etc/X11/xinit/xserverrc will start your X session on XDG_VTNR, if the environment variable is set.

0 comments on commit caf4d0a

Please sign in to comment.