030-wm.sh: switch to sudo to fix controlling tty issue with recent X.org
authorMichael Prokop <mika@grml.org>
Fri, 7 Apr 2017 14:37:05 +0000 (16:37 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 7 Apr 2017 14:37:05 +0000 (16:37 +0200)
commit23e5c347f27f5601f51c349f5cb3ed2712556ba8
tree4144652f4748061b96ff89828a342ad6fbf16dbf
parentfd9cbca4e9748eb94c659f1a4eddcf8bdf3b8744
030-wm.sh: switch to sudo to fix controlling tty issue with recent X.org

X.org doesn't run as root anymore (unless using
xserver-xorg-legacy workaround). When invoking X.org via 'su -c
...' no controlling tty can be acquired, because of a change in
upstream's shadow release 4.1.5 (dating back to 2011-06-05).
Related to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802769
We need read and write permissions on the TTY, so adjust the TTY
we're running on accordingly.
quickconfig/030-wm.sh